|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sblim.wbem.http.HttpClientPool
public class HttpClientPool
Constructor Summary | |
---|---|
HttpClientPool()
|
Method Summary | |
---|---|
boolean |
addConnectionToPool(HttpClient httpClient)
Add the connection to the pool, but does NOT add it as available connection. |
void |
closePool()
|
protected void |
finalize()
|
int |
getNumberOfAllConnections()
Returns the number of connections in this pool that are available/free for (re-)use. |
int |
getNumberOfAvailableConnections()
Returns the number of all connections in this pool. |
SessionProperties |
getSessionProperties()
|
boolean |
removeConnectionFromPool(HttpClient httpClient)
Removes a connection completly from the pool. |
HttpClient |
retrieveAvailableConnectionFromPool()
|
boolean |
returnAvailableConnectionToPool(HttpClient httpClient)
Add the connection to the pool. |
void |
setSessionProperties(SessionProperties pSessionProperties)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpClientPool()
Method Detail |
---|
public int getNumberOfAllConnections()
public int getNumberOfAvailableConnections()
public SessionProperties getSessionProperties()
public void setSessionProperties(SessionProperties pSessionProperties)
public HttpClient retrieveAvailableConnectionFromPool()
public boolean returnAvailableConnectionToPool(HttpClient httpClient)
addConnectionToPool(HttpClient)
to add
the connection without being available for reuse.
httpClient
- connection that is to be added to the pool
public boolean addConnectionToPool(HttpClient httpClient)
returnAvailableConnectionToPool(HttpClient)
to also add the
connection to the available connections.
httpClient
- connection that is to be added to the pool
public boolean removeConnectionFromPool(HttpClient httpClient)
httpClient
- connection that is to be removed from the pool
public void closePool()
protected void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |