Class HttpConnectionPoolService.IdleConnectionMonitorThread

java.lang.Object
java.lang.Thread
org.dspace.service.impl.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 Details

    • IdleConnectionMonitorThread

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

    • 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.