Package org.apache.http.impl.client
Class IdleConnectionEvictor
- java.lang.Object
-
- org.apache.http.impl.client.IdleConnectionEvictor
-
public final class IdleConnectionEvictor extends java.lang.Object
This class maintains a background thread to enforce an eviction policy for expired / idle persistent connections kept alive in the connection pool.- Since:
- 4.4
-
-
Constructor Summary
Constructors Constructor Description IdleConnectionEvictor(HttpClientConnectionManager connectionManager, long maxIdleTime, java.util.concurrent.TimeUnit maxIdleTimeUnit)
IdleConnectionEvictor(HttpClientConnectionManager connectionManager, long sleepTime, java.util.concurrent.TimeUnit sleepTimeUnit, long maxIdleTime, java.util.concurrent.TimeUnit maxIdleTimeUnit)
IdleConnectionEvictor(HttpClientConnectionManager connectionManager, java.util.concurrent.ThreadFactory threadFactory, long sleepTime, java.util.concurrent.TimeUnit sleepTimeUnit, long maxIdleTime, java.util.concurrent.TimeUnit maxIdleTimeUnit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
awaitTermination(long time, java.util.concurrent.TimeUnit timeUnit)
boolean
isRunning()
void
shutdown()
void
start()
-
-
-
Constructor Detail
-
IdleConnectionEvictor
public IdleConnectionEvictor(HttpClientConnectionManager connectionManager, java.util.concurrent.ThreadFactory threadFactory, long sleepTime, java.util.concurrent.TimeUnit sleepTimeUnit, long maxIdleTime, java.util.concurrent.TimeUnit maxIdleTimeUnit)
-
IdleConnectionEvictor
public IdleConnectionEvictor(HttpClientConnectionManager connectionManager, long sleepTime, java.util.concurrent.TimeUnit sleepTimeUnit, long maxIdleTime, java.util.concurrent.TimeUnit maxIdleTimeUnit)
-
IdleConnectionEvictor
public IdleConnectionEvictor(HttpClientConnectionManager connectionManager, long maxIdleTime, java.util.concurrent.TimeUnit maxIdleTimeUnit)
-
-