org.apache.commons.httpclient.util
public class IdleConnectionTimeoutThread extends Thread
Constructor Summary | |
---|---|
IdleConnectionTimeoutThread() |
Method Summary | |
---|---|
void | addConnectionManager(HttpConnectionManager connectionManager)
Adds a connection manager to be handled by this class.
HttpConnectionManager will be called on the connection
manager every timeoutInterval milliseconds.
|
void | removeConnectionManager(HttpConnectionManager connectionManager)
Removes the connection manager from this class. |
void | run()
Closes idle connections. |
void | setConnectionTimeout(long connectionTimeout)
Sets the timeout value to use when testing for idle connections.
|
void | setTimeoutInterval(long timeoutInterval)
Sets the interval used by this class between closing idle connections. |
void | shutdown()
Stops the thread used to close idle connections. |
timeoutInterval
milliseconds.
Parameters: connectionManager The connection manager to add
Parameters: connectionManager The connection manager to remove
Parameters: connectionTimeout The connection timeout in milliseconds
See Also: HttpConnectionManager
timeoutInterval
milliseconds.
Parameters: timeoutInterval The timeout interval in milliseconds