Package davmail.http
Class DavMailIdleConnectionEvictor
java.lang.Object
davmail.http.DavMailIdleConnectionEvictor
Single thread for all connection managers.
Close idle connections
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager) Add a connection manager to the eviction monitor set.static voidremoveConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager) Remove the connection manager from the eviction monitor set.static voidshutdown()Shutdown the connection manager evictor thread.
-
Field Details
-
LOGGER
protected static final org.apache.log4j.Logger LOGGER
-
-
Constructor Details
-
DavMailIdleConnectionEvictor
public DavMailIdleConnectionEvictor()
-
-
Method Details
-
shutdown
Shutdown the connection manager evictor thread.- Throws:
InterruptedException- on error
-
addConnectionManager
public static void addConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager) Add a connection manager to the eviction monitor set.- Parameters:
connectionManager- connection manager to monitor
-
removeConnectionManager
public static void removeConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager) Remove the connection manager from the eviction monitor set.- Parameters:
connectionManager- connection manager to remove
-