@Deprecated
public class IdleConnectionHandler
extends java.lang.Object
This class is not synchronized.
| 构造器和说明 |
|---|
IdleConnectionHandler()
已过时。
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
add(HttpConnection connection,
long validDuration,
java.util.concurrent.TimeUnit unit)
已过时。
Registers the given connection with this handler.
|
void |
closeExpiredConnections()
已过时。
|
void |
closeIdleConnections(long idleTime)
已过时。
Closes connections that have been idle for at least the given amount of time.
|
boolean |
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, long validDuration, java.util.concurrent.TimeUnit unit)
remove(depends.org.apache.http.HttpConnection) or closeIdleConnections(long) is called.connection - the connection to addremove(depends.org.apache.http.HttpConnection)public boolean remove(HttpConnection connection)
connection - public void removeAll()
public void closeIdleConnections(long idleTime)
idleTime - the minimum idle time, in milliseconds, for connections to be closedpublic void closeExpiredConnections()