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 Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanderegisterConnectionManager(org.apache.http.conn.HttpClientConnectionManager manager)Deregister this connection manager with this reaper.static IdleConnectionReapergetInstance()booleanregisterConnectionManager(org.apache.http.conn.HttpClientConnectionManager manager, long maxIdleTime)Register the connection manager with this reaper.
-
-
-
Method Detail
-
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:
trueIf the connection manager was not previously registered with this reaper,falseotherwise.
-
deregisterConnectionManager
public boolean deregisterConnectionManager(org.apache.http.conn.HttpClientConnectionManager manager)
Deregister this connection manager with this reaper.- Parameters:
manager- The connection manager.- Returns:
trueIf this connection manager was previously registered with this reaper and it was removed,falseotherwise.
-
getInstance
public static IdleConnectionReaper getInstance()
- Returns:
- The singleton instance of this class.
-
-