Class IdleConnectionReaper
java.lang.Object
software.amazon.awssdk.http.apache.internal.conn.IdleConnectionReaper
Manages the reaping of idle connections.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanderegisterConnectionManager(org.apache.http.conn.HttpClientConnectionManager manager) Deregister this connection manager with this reaper.static IdleConnectionReaperbooleanregisterConnectionManager(org.apache.http.conn.HttpClientConnectionManager manager, long maxIdleTime) Register the connection manager with this reaper.
-
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:
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
- Returns:
- The singleton instance of this class.
-