Class HttpConnectionPoolService.IdleConnectionMonitorThread

  • All Implemented Interfaces:
    Runnable
    Enclosing class:
    HttpConnectionPoolService

    public class HttpConnectionPoolService.IdleConnectionMonitorThread
    extends Thread
    Clean up stale connections. Swiped from https://www.baeldung.com/httpclient-connection-management
    • Constructor Detail

      • IdleConnectionMonitorThread

        public IdleConnectionMonitorThread​(org.apache.http.impl.conn.PoolingHttpClientConnectionManager connMgr)
        Constructor.
        Parameters:
        connMgr - the manager to be monitored.
    • Method Detail

      • run

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

        public void shutdown()
        Cause a controlled exit from the thread.