public class IdleConnectionHandler
extends java.lang.Object
This class is not synchronized.
HttpConnectionManager.closeIdleConnections(long)
Constructor | Description |
---|---|
IdleConnectionHandler() |
Modifier and Type | Method | Description |
---|---|---|
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.
|
public void add(HttpConnection connection)
remove(HttpConnection)
or closeIdleConnections(long)
is called.connection
- the connection to addremove(HttpConnection)
public void remove(HttpConnection connection)
connection
- public void removeAll()
public void closeIdleConnections(long idleTime)
idleTime
- the minimum idle time, in milliseconds, for connections to be closedCopyright (c) 1999-2005 - Apache Software Foundation