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