Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
IdleConnectionMonitorThread(org.apache.http.conn.HttpClientConnectionManager connMgr,
long sleepTime,
long idleTime) |
| Modifier and Type | Method and Description |
|---|---|
long |
getIdleTime()
Specifies the time duration in milliseconds that a connection can be idle before it is evicted from the pool.
|
long |
getSleepTime()
Specifies time duration in milliseconds between "sweeps" by the "idle connection" evictor thread.
|
void |
run() |
void |
shutdown()
shutdown the cleaner thread
|
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, yieldpublic IdleConnectionMonitorThread(org.apache.http.conn.HttpClientConnectionManager connMgr,
long sleepTime,
long idleTime)
connMgr - - HttpClientConnectionManagersleepTime - - longidleTime - - longpublic long getIdleTime()
public long getSleepTime()
public void shutdown()
Copyright © 2022. All rights reserved.