|
||||||||||
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 |
closeIdleConnections(long idletime)
Closes idle connections in the pool. |
ManagedClientConnection |
getConnection(HttpRoute route)
Obtains a connection. |
ManagedClientConnection |
getConnection(HttpRoute route,
long timeout)
Obtains a connection within a given time. |
SchemeRegistry |
getSchemeRegistry()
|
void |
releaseConnection(ManagedClientConnection conn)
Releases a connection for use by others. |
void |
shutdown()
Shuts down this connection manager and releases allocated resources. |
Method Detail |
---|
SchemeRegistry getSchemeRegistry()
ManagedClientConnection getConnection(HttpRoute route)
shut down
.
route
- where the connection should point to
ManagedClientConnection getConnection(HttpRoute route, long timeout) throws ConnectionPoolTimeoutException
shut down
.
route
- where the connection should point totimeout
- the timeout in milliseconds
ConnectionPoolTimeoutException
- in case of a timeoutvoid releaseConnection(ManagedClientConnection conn)
conn
- the connection to releasevoid closeIdleConnections(long idletime)
idletime
- the idle time in millisecondsvoid shutdown()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |