![JAR search and dependency download from the Maven repository](/logo.png)
com.ibm.optim.oaas.client.http.HttpIdleConnectionMonitorThread.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-java-client Show documentation
Show all versions of api-java-client Show documentation
Java client API for DOCplexCloud, version 1.0.257
The newest version!
<span class="http"><span class="http"><span class="coffeescript">HttpIdleConnectionMonitorThread (Java Client <span class="hljs-keyword">for</span> DOcplexcloud <span class="hljs-number">1.0</span> API)</span></span></span>
com.ibm.optim.oaas.client.http
Class HttpIdleConnectionMonitorThread
- java.lang.Object
-
- java.lang.Thread
-
- com.ibm.optim.oaas.client.http.HttpIdleConnectionMonitorThread
-
- All Implemented Interfaces:
- Runnable
public class HttpIdleConnectionMonitorThread
extends Thread
This monitor thread can be used to evict expired and idle connections.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
Field Summary
Fields 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.
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors 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.
-
Method Summary
Methods Modifier and Type Method and Description void
run()
void
shutdown()
Shutdown the monitor thread.
-
Methods inherited from class java.lang.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, yield
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
Field Detail
-
DEFAULT_IDLE_TIMEOUT
public static final int DEFAULT_IDLE_TIMEOUT
Default idle timeout in seconds.
- See Also:
- Constant Field Values
-
DEFAULT_INTERVAL
public static final int DEFAULT_INTERVAL
Default time interval to check for expired and idle connections.
- See Also:
- Constant Field Values
-
Constructor Detail
-
HttpIdleConnectionMonitorThread
public HttpIdleConnectionMonitorThread(org.apache.http.impl.client.CloseableHttpClient client)
Creates a monitor thread for the given client with default values.
- Parameters:
client
- The HTTP client.
-
HttpIdleConnectionMonitorThread
public HttpIdleConnectionMonitorThread(org.apache.http.impl.client.CloseableHttpClient client,
int interval,
int idleTimeout)
Creates a monitor thread for the given client with specific values.
- Parameters:
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.