|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ClientConnectionManager
Management interface for client connections
.
Method Summary | |
---|---|
void |
closeExpiredConnections()
Closes all expired connections in the pool. |
void |
closeIdleConnections(long idletime,
java.util.concurrent.TimeUnit tunit)
Closes idle connections in the pool. |
SchemeRegistry |
getSchemeRegistry()
Obtains the scheme registry used by this manager. |
void |
releaseConnection(ManagedClientConnection conn,
long validDuration,
java.util.concurrent.TimeUnit timeUnit)
Releases a connection for use by others. |
ClientConnectionRequest |
requestConnection(HttpRoute route,
java.lang.Object state)
Returns a new ClientConnectionRequest , from which a
ManagedClientConnection can be obtained or the request can be
aborted. |
void |
shutdown()
Shuts down this connection manager and releases allocated resources. |
Method Detail |
---|
SchemeRegistry getSchemeRegistry()
null
ClientConnectionRequest requestConnection(HttpRoute route, java.lang.Object state)
ClientConnectionRequest
, from which a
ManagedClientConnection
can be obtained or the request can be
aborted.
void releaseConnection(ManagedClientConnection conn, long validDuration, java.util.concurrent.TimeUnit timeUnit)
conn
- the connection to releasevalidDuration
- the duration of time this connection is valid for reusetimeUnit
- the unit of time validDuration is measured incloseExpiredConnections()
void closeIdleConnections(long idletime, java.util.concurrent.TimeUnit tunit)
idletime
- the idle time of connections to be closedtunit
- the unit for the idletime
closeExpiredConnections()
void closeExpiredConnections()
void shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |