public class HttpClientPool
extends java.lang.Object
Constructor and Description |
---|
HttpClientPool() |
Modifier and Type | Method and Description |
---|---|
void |
closePool(boolean pKeepActive) |
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.
|
int |
getPoolSize()
Returns poolSize
|
SessionProperties |
getSessionProperties() |
boolean |
removeConnectionFromPool(HttpClient httpClient)
Removes a connection completly from the pool.
|
HttpClient |
retrieveAvailableConnectionFromPool(java.net.URI pUri,
AuthorizationHandler pHandler)
Returns the available connections of this pool for a given
URI&AuthorizationHandler
|
boolean |
returnAvailableConnectionToPool(HttpClient httpClient)
Add the connection to the pool.
|
void |
setSessionProperties(SessionProperties pSessionProperties) |
public int getNumberOfAllConnections()
public int getNumberOfAvailableConnections()
public SessionProperties getSessionProperties()
public void setSessionProperties(SessionProperties pSessionProperties)
public HttpClient retrieveAvailableConnectionFromPool(java.net.URI pUri, AuthorizationHandler pHandler)
pUri
- The uripHandler
- The authoriaztion handlernull
otherwisepublic boolean returnAvailableConnectionToPool(HttpClient httpClient)
addConnectionToPool(HttpClient)
to add
the connection without being available for reuse.httpClient
- connection that is to be added to the poolpublic boolean removeConnectionFromPool(HttpClient httpClient)
httpClient
- connection that is to be removed from the poolpublic void closePool(boolean pKeepActive)
protected void finalize()
finalize
in class java.lang.Object
public int getPoolSize()
Copyright © 2005, 2011 IBM Corporation. All Rights Reserved.