public class CleanShutdownPoolingClientConnectionManager
extends org.apache.http.impl.conn.PoolingClientConnectionManager
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
CleanShutdownPoolingClientConnectionManager() |
CleanShutdownPoolingClientConnectionManager(org.apache.http.conn.scheme.SchemeRegistry schreg) |
CleanShutdownPoolingClientConnectionManager(org.apache.http.conn.scheme.SchemeRegistry schreg,
org.apache.http.conn.DnsResolver dnsResolver) |
CleanShutdownPoolingClientConnectionManager(org.apache.http.conn.scheme.SchemeRegistry schemeRegistry,
long timeToLive,
java.util.concurrent.TimeUnit tunit) |
CleanShutdownPoolingClientConnectionManager(org.apache.http.conn.scheme.SchemeRegistry schemeRegistry,
long timeToLive,
java.util.concurrent.TimeUnit tunit,
org.apache.http.conn.DnsResolver dnsResolver) |
| Modifier and Type | Method and Description |
|---|---|
void |
setShutdownThreadKillTime(int shutdownThreadKillTime)
Hard limit time for shutting down the connection manager.
|
void |
setShutdownThreadMaxTime(int shutdownThreadMaxTime)
Limit after which the shutdown thread is repeatedly interrupted.
|
void |
setShutdownThreadMaxWaitTime(int shutdownThreadMaxWaitTime)
Limit of time the shutdown thread is allowed to stay in
Thread.State.BLOCKED, Thread.State.WAITING, or
Thread.State.TIMED_WAITING. |
void |
setShutdownThreadPollRate(int shutdownThreadPollRate)
Rate at which the state of the shutdown thread is polled and/or interrupted.
|
void |
shutdown() |
closeExpiredConnections, closeIdleConnections, createConnectionOperator, finalize, getDefaultMaxPerRoute, getMaxPerRoute, getMaxTotal, getSchemeRegistry, getStats, getTotalStats, releaseConnection, requestConnection, setDefaultMaxPerRoute, setMaxPerRoute, setMaxTotalpublic CleanShutdownPoolingClientConnectionManager()
public CleanShutdownPoolingClientConnectionManager(org.apache.http.conn.scheme.SchemeRegistry schreg,
org.apache.http.conn.DnsResolver dnsResolver)
public CleanShutdownPoolingClientConnectionManager(org.apache.http.conn.scheme.SchemeRegistry schemeRegistry,
long timeToLive,
java.util.concurrent.TimeUnit tunit,
org.apache.http.conn.DnsResolver dnsResolver)
public CleanShutdownPoolingClientConnectionManager(org.apache.http.conn.scheme.SchemeRegistry schemeRegistry,
long timeToLive,
java.util.concurrent.TimeUnit tunit)
public CleanShutdownPoolingClientConnectionManager(org.apache.http.conn.scheme.SchemeRegistry schreg)
public void setShutdownThreadKillTime(int shutdownThreadKillTime)
Thread.stop().
Defaults to 45s (45000ms)shutdownThreadKillTime - Hard limit for shutting down the connection managerpublic void setShutdownThreadMaxTime(int shutdownThreadMaxTime)
shutdownThreadMaxTime - Limit after which the shutdown thread is interruptedpublic void setShutdownThreadMaxWaitTime(int shutdownThreadMaxWaitTime)
Thread.State.BLOCKED, Thread.State.WAITING, or
Thread.State.TIMED_WAITING. Once hit the thread is interrupted and the timer is reset.
Defaults to 1s (1000ms)shutdownThreadMaxWaitTime - Limit of time the shutdown thread is allowed to stay in Thread.State.BLOCKED, Thread.State.WAITING, or
Thread.State.TIMED_WAITINGpublic void setShutdownThreadPollRate(int shutdownThreadPollRate)
shutdownThreadPollRate - Rate at which the state of the shutdown thread is polled and/or interruptedpublic void shutdown()
shutdown in interface org.apache.http.conn.ClientConnectionManagershutdown in class org.apache.http.impl.conn.PoolingClientConnectionManagerCopyright © 2018 Jasig. All Rights Reserved.