Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_IDLE_TIMEOUT
Default idle timeout in seconds.
|
static int |
DEFAULT_INTERVAL
Default time interval to check for expired and idle connections.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
HttpIdleConnectionMonitorThread(org.apache.http.impl.client.CloseableHttpClient client)
Creates a monitor thread for the given client with default values.
|
HttpIdleConnectionMonitorThread(org.apache.http.impl.client.CloseableHttpClient client,
int interval,
int idleTimeout)
Creates a monitor thread for the given client with specific values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run() |
void |
shutdown()
Shutdown the monitor thread.
|
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, yieldpublic static final int DEFAULT_IDLE_TIMEOUT
public static final int DEFAULT_INTERVAL
public HttpIdleConnectionMonitorThread(org.apache.http.impl.client.CloseableHttpClient client)
client - The HTTP client.public HttpIdleConnectionMonitorThread(org.apache.http.impl.client.CloseableHttpClient client,
int interval,
int idleTimeout)
client - The HTTP client.interval - The time interval in seconds.idleTimeout - The idle timeout in seconds.Copyright © 2015–2017 IBM Corporation. Licensed under the Apache License, Version 2.0.