public final class IdleConnectionEvictor extends Object
Constructor and Description |
---|
IdleConnectionEvictor(HttpClientConnectionManager connectionManager,
long maxIdleTime,
TimeUnit maxIdleTimeUnit) |
IdleConnectionEvictor(HttpClientConnectionManager connectionManager,
long sleepTime,
TimeUnit sleepTimeUnit,
long maxIdleTime,
TimeUnit maxIdleTimeUnit) |
IdleConnectionEvictor(HttpClientConnectionManager connectionManager,
ThreadFactory threadFactory,
long sleepTime,
TimeUnit sleepTimeUnit,
long maxIdleTime,
TimeUnit maxIdleTimeUnit) |
Modifier and Type | Method and Description |
---|---|
void |
awaitTermination(long time,
TimeUnit timeUnit) |
boolean |
isRunning() |
void |
shutdown() |
void |
start() |
public IdleConnectionEvictor(HttpClientConnectionManager connectionManager, ThreadFactory threadFactory, long sleepTime, TimeUnit sleepTimeUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
public IdleConnectionEvictor(HttpClientConnectionManager connectionManager, long sleepTime, TimeUnit sleepTimeUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
public IdleConnectionEvictor(HttpClientConnectionManager connectionManager, long maxIdleTime, TimeUnit maxIdleTimeUnit)
public void start()
public void shutdown()
public boolean isRunning()
public void awaitTermination(long time, TimeUnit timeUnit) throws InterruptedException
InterruptedException
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.