public final class IdleConnectionReaper extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
deregisterConnectionManager(org.apache.http.conn.HttpClientConnectionManager manager)
Deregister this connection manager with this reaper.
|
static IdleConnectionReaper |
getInstance() |
boolean |
registerConnectionManager(org.apache.http.conn.HttpClientConnectionManager manager,
long maxIdleTime)
Register the connection manager with this reaper.
|
public boolean registerConnectionManager(org.apache.http.conn.HttpClientConnectionManager manager, long maxIdleTime)
manager
- The connection manager.maxIdleTime
- The maximum time connections in the connection manager are to remain idle before being reaped.true
If the connection manager was not previously registered with this reaper, false
otherwise.public boolean deregisterConnectionManager(org.apache.http.conn.HttpClientConnectionManager manager)
manager
- The connection manager.true
If this connection manager was previously registered with this reaper and it was removed, false
otherwise.public static IdleConnectionReaper getInstance()
Copyright © 2019. All rights reserved.