public class HttpConnectionMonitorService extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Modifier and Type | Method and Description |
---|---|
void |
addHttpClientMonitor(org.apache.http.client.HttpClient client)
Add an HttpClient to close upon exit.
|
void |
addMonitor(org.apache.http.conn.HttpClientConnectionManager cMan)
Add a connectionManager to monitor
|
static HttpConnectionMonitorService |
getInstance() |
void |
removeMonitor(org.apache.http.conn.HttpClientConnectionManager cMan)
remove a ConnectionManager from monitoring
Not sure of the use case for it, since we need to keep all of the
ConnectionManagers around until application shutdown, where-upon
we close all connection managers.
|
void |
run() |
protected void |
shutdownConnectionManagers() |
activeCount, checkAccess, clone, 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
public static HttpConnectionMonitorService getInstance()
public void addMonitor(org.apache.http.conn.HttpClientConnectionManager cMan)
cMan
- public void addHttpClientMonitor(org.apache.http.client.HttpClient client)
client
- public void removeMonitor(org.apache.http.conn.HttpClientConnectionManager cMan)
cMan
- protected void shutdownConnectionManagers()
Copyright © 2020. All Rights Reserved.