@Contract(threading=SAFE_CONDITIONAL) public final class IdleConnectionEvictor extends Object
Constructor and Description |
---|
IdleConnectionEvictor(org.apache.hc.core5.pool.ConnPoolControl<?> connectionManager,
ThreadFactory threadFactory,
org.apache.hc.core5.util.TimeValue sleepTime,
org.apache.hc.core5.util.TimeValue maxIdleTime) |
IdleConnectionEvictor(org.apache.hc.core5.pool.ConnPoolControl<?> connectionManager,
org.apache.hc.core5.util.TimeValue maxIdleTime) |
IdleConnectionEvictor(org.apache.hc.core5.pool.ConnPoolControl<?> connectionManager,
org.apache.hc.core5.util.TimeValue sleepTime,
org.apache.hc.core5.util.TimeValue maxIdleTime) |
Modifier and Type | Method and Description |
---|---|
void |
awaitTermination(org.apache.hc.core5.util.Timeout timeout) |
boolean |
isRunning() |
void |
shutdown() |
void |
start() |
public IdleConnectionEvictor(org.apache.hc.core5.pool.ConnPoolControl<?> connectionManager, ThreadFactory threadFactory, org.apache.hc.core5.util.TimeValue sleepTime, org.apache.hc.core5.util.TimeValue maxIdleTime)
public IdleConnectionEvictor(org.apache.hc.core5.pool.ConnPoolControl<?> connectionManager, org.apache.hc.core5.util.TimeValue sleepTime, org.apache.hc.core5.util.TimeValue maxIdleTime)
public IdleConnectionEvictor(org.apache.hc.core5.pool.ConnPoolControl<?> connectionManager, org.apache.hc.core5.util.TimeValue maxIdleTime)
public void start()
public void shutdown()
public boolean isRunning()
public void awaitTermination(org.apache.hc.core5.util.Timeout timeout) throws InterruptedException
InterruptedException
Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.