public final class IdleConnectionReaper extends Thread
Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Modifier and Type | Method and Description |
|---|---|
static List<org.apache.http.conn.HttpClientConnectionManager> |
getRegisteredConnectionManagers() |
static boolean |
registerConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager)
Deprecated.
|
static boolean |
registerConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager,
long maxIdleInMs)
Registers the given connection manager with this reaper;
|
static boolean |
removeConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager)
Removes the given connection manager from this reaper,
and shutting down the reaper if there is zero connection manager left.
|
void |
run() |
static boolean |
shutdown()
Shuts down the thread, allowing the class and instance to be collected.
|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield@Deprecated public static boolean registerConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager)
registerConnectionManager(HttpClientConnectionManager, long).public static boolean registerConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager,
long maxIdleInMs)
connectionManager - Connection manager to registermaxIdleInMs - Max idle connection timeout in milliseconds for this connection manager.public static boolean removeConnectionManager(org.apache.http.conn.HttpClientConnectionManager connectionManager)
public static List<org.apache.http.conn.HttpClientConnectionManager> getRegisteredConnectionManagers()
public static boolean shutdown()