|
||||||||||
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. |
org.apache.http.params.HttpParams |
getParams()
Obtains the parameters of this manager. |
SchemeRegistry |
getSchemeRegistry()
Obtains the scheme registry used by this manager. |
void |
releaseConnection(ManagedClientConnection conn)
Releases a connection for use by others. |
void |
shutdown()
Shuts down this connection manager and releases allocated resources. |
Method Detail |
---|
org.apache.http.params.HttpParams getParams()
null
SchemeRegistry getSchemeRegistry()
null
ManagedClientConnection getConnection(HttpRoute route) throws java.lang.InterruptedException
shut down
.
route
- where the connection should point to
java.lang.InterruptedException
- if the calling thread is interrupted while waitingManagedClientConnection getConnection(HttpRoute route, long timeout) throws ConnectionPoolTimeoutException, java.lang.InterruptedException
shut down
.
route
- where the connection should point totimeout
- the timeout in milliseconds
ConnectionPoolTimeoutException
- in case of a timeout
java.lang.InterruptedException
- if the calling thread is interrupted while waitingvoid 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 |