java.lang.Object | |
↳ | org.apache.http.impl.conn.IdleConnectionHandler |
This class is deprecated.
Please use openConnection()
instead.
Please visit this webpage
for further details.
A helper class for connection managers to track idle connections.
This class is not synchronized.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Registers the given connection with this handler.
| |||||||||||
Closes connections that have been idle for at least the given amount of time.
| |||||||||||
Removes the given connection from the list of connections to be closed when idle.
| |||||||||||
Removes all connections referenced by this handler.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Registers the given connection with this handler. The connection will be held until
remove(HttpConnection)
or closeIdleConnections(long)
is called.
connection | the connection to add |
---|
Closes connections that have been idle for at least the given amount of time.
idleTime | the minimum idle time, in milliseconds, for connections to be closed |
---|
Removes the given connection from the list of connections to be closed when idle. This will return true if the connection is still valid, and false if the connection should be considered expired and not used.