@Deprecated public class HttpIdleConnectionReaper extends Object
Constructor and Description |
---|
HttpIdleConnectionReaper(org.apache.http.client.HttpClient httpClient,
long idleCheckInterval,
long idleTimeout)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isStarted()
Deprecated.
Returns
true if the reaper is started. |
boolean |
isStopped()
Deprecated.
Returns
true if the reaper is stopped. |
void |
stop()
Deprecated.
Stops the Idle Connection Reaper if running.
|
void |
waitForReaperStart(long millis)
Deprecated.
Tells the reaper thread the maximum time to wait before starting.
|
void |
waitForReaperStop(long millis)
Deprecated.
Tells the reaper thread the maximum time to wait before stopping.
|
public HttpIdleConnectionReaper(org.apache.http.client.HttpClient httpClient, long idleCheckInterval, long idleTimeout)
httpClient
- The HttpClient for which this is the reaper.idleCheckInterval
- The time to sleep between checks for idle connections. Note
that if this is 0, then reaping won't occur.idleTimeout
- The age of connections to reap.public boolean isStarted()
true
if the reaper is started.true
If the reaper is started.public boolean isStopped()
true
if the reaper is stopped.true
if the reaper is stopped.public void stop() throws InterruptedException
InterruptedException
- If the call to stop was interruptedpublic void waitForReaperStart(long millis) throws InterruptedException
millis
- The maximum time to wait before starting the thread.InterruptedException
- If the current thread was interrupted.public void waitForReaperStop(long millis) throws InterruptedException
millis
- The maximum time to wait before stopping the thread.InterruptedException
- If the current thread was interrupted.Copyright © 2005–2016. All rights reserved.