@Contract(threading=SAFE_CONDITIONAL) public final class IdleConnectionEvictor extends Object
Constructor and Description |
---|
IdleConnectionEvictor(ConnPoolControl<?> connectionManager,
ThreadFactory threadFactory,
TimeValue sleepTime,
TimeValue maxIdleTime) |
IdleConnectionEvictor(ConnPoolControl<?> connectionManager,
TimeValue maxIdleTime) |
IdleConnectionEvictor(ConnPoolControl<?> connectionManager,
TimeValue sleepTime,
TimeValue maxIdleTime) |
Modifier and Type | Method and Description |
---|---|
void |
awaitTermination(Timeout timeout) |
boolean |
isRunning() |
void |
shutdown() |
void |
start() |
public IdleConnectionEvictor(ConnPoolControl<?> connectionManager, ThreadFactory threadFactory, TimeValue sleepTime, TimeValue maxIdleTime)
public IdleConnectionEvictor(ConnPoolControl<?> connectionManager, TimeValue maxIdleTime)
public IdleConnectionEvictor(ConnPoolControl<?> connectionManager, TimeValue sleepTime, TimeValue maxIdleTime)
public void awaitTermination(Timeout timeout) throws InterruptedException
InterruptedException
public boolean isRunning()
public void shutdown()
public void start()