org.apache.commons.httpclient.util
public class IdleConnectionHandler extends Object
This class is not synchronized.
Since: 3.0
| Constructor Summary | |
|---|---|
| IdleConnectionHandler() | |
| Method Summary | |
|---|---|
| void | add(HttpConnection connection)
Registers the given connection with this handler. |
| void | closeIdleConnections(long idleTime)
Closes connections that have been idle for at least the given amount of time.
|
| void | remove(HttpConnection connection)
Removes the given connection from the list of connections to be closed when idle. |
| void | removeAll()
Removes all connections referenced by this handler. |
Parameters: connection the connection to add
See Also: remove
Parameters: idleTime the minimum idle time, in milliseconds, for connections to be closed
Parameters: connection