All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ibm.optim.oaas.client.http.HttpIdleConnectionMonitorThread.html Maven / Gradle / Ivy

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

  • All Implemented Interfaces:
    Runnable


    public class HttpIdleConnectionMonitorThread
    extends Thread
    This monitor thread can be used to evict expired and idle connections.
    • 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.
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface Runnable
        Overrides:
        run in class Thread
      • shutdown

        public void shutdown()
        Shutdown the monitor thread.

Copyright © 20152017 IBM Corporation. Licensed under the Apache License, Version 2.0.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy