public class CstaHttpConnectionsPool
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.log4j.Logger |
logger |
Constructor and Description |
---|
CstaHttpConnectionsPool(java.net.URL osvURL)
Creates an CstaHTTPConnections pool for the url with the
default max number of connections i.e.
|
CstaHttpConnectionsPool(java.net.URL osv,
int maxHTTPConnections)
Creates an CstaHTTPConnections pool for the url with the number of connections
specified in the input param
|
Modifier and Type | Method and Description |
---|---|
void |
cacheConnection(CstaHttpConnection con)
Must be called to notify pending POSTs that there is an available tcp connection to
be used
|
CstaHttpConnection |
getHttpConnection()
Returns a CstaHttpConnection to be used for POSTs
|
public CstaHttpConnectionsPool(java.net.URL osvURL)
osvURL
- public CstaHttpConnectionsPool(java.net.URL osv, int maxHTTPConnections)
osv
- maxHTTPConnections
- public CstaHttpConnection getHttpConnection() throws java.io.IOException
java.io.IOException
public void cacheConnection(CstaHttpConnection con)
con
-