public static final class UpdateShardHandler.IdleConnectionsEvictor extends Object
This class maintains a background thread to enforce an eviction policy for expired / idle persistent connections kept alive in the connection pool.
See SOLR-9290 for related discussion.
Constructor and Description |
---|
IdleConnectionsEvictor(org.apache.http.conn.ClientConnectionManager connectionManager,
long sleepTime,
TimeUnit sleepTimeUnit,
long maxIdleTime,
TimeUnit maxIdleTimeUnit) |
IdleConnectionsEvictor(org.apache.http.conn.ClientConnectionManager connectionManager,
ThreadFactory threadFactory,
long sleepTime,
TimeUnit sleepTimeUnit,
long maxIdleTime,
TimeUnit maxIdleTimeUnit) |
Modifier and Type | Method and Description |
---|---|
void |
awaitTermination(long time,
TimeUnit tunit) |
boolean |
isRunning() |
void |
shutdown() |
void |
start() |
public IdleConnectionsEvictor(org.apache.http.conn.ClientConnectionManager connectionManager, ThreadFactory threadFactory, long sleepTime, TimeUnit sleepTimeUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit)
public void start()
public void shutdown()
public boolean isRunning()
public void awaitTermination(long time, TimeUnit tunit) throws InterruptedException
InterruptedException
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.