Class IdleConnectionReaper

java.lang.Object
software.amazon.awssdk.http.apache.internal.conn.IdleConnectionReaper

public final class IdleConnectionReaper extends Object
Manages the reaping of idle connections.
  • Method Details

    • registerConnectionManager

      public boolean registerConnectionManager(org.apache.http.conn.HttpClientConnectionManager manager, long maxIdleTime)
      Register the connection manager with this reaper.
      Parameters:
      manager - The connection manager.
      maxIdleTime - The maximum time connections in the connection manager are to remain idle before being reaped.
      Returns:
      true If the connection manager was not previously registered with this reaper, false otherwise.
    • deregisterConnectionManager

      public boolean deregisterConnectionManager(org.apache.http.conn.HttpClientConnectionManager manager)
      Deregister this connection manager with this reaper.
      Parameters:
      manager - The connection manager.
      Returns:
      true If this connection manager was previously registered with this reaper and it was removed, false otherwise.
    • getInstance

      public static IdleConnectionReaper getInstance()
      Returns:
      The singleton instance of this class.