com.netflix.http4
Class ConnectionPoolCleaner

java.lang.Object
  extended by com.netflix.http4.ConnectionPoolCleaner

public class ConnectionPoolCleaner
extends java.lang.Object

Class that is responsible to cleanup connections based on a policy For e.g. evict all connections from the pool that have been idle for more than x msecs


Constructor Summary
ConnectionPoolCleaner(java.lang.String name, org.apache.http.conn.ClientConnectionManager connMgr)
           
 
Method Summary
 long getConnectionCleanerRepeatInterval()
           
 long getConnectionCleanerTimerDelay()
           
 com.netflix.config.DynamicIntProperty getConnIdleEvictTimeMilliSeconds()
           
 void initTask()
           
 boolean isEnableConnectionPoolCleanerTask()
           
 void setConnectionCleanerRepeatInterval(long connectionCleanerRepeatInterval)
           
 void setConnectionCleanerTimerDelay(long connectionCleanerTimerDelay)
           
 void setConnIdleEvictTimeMilliSeconds(com.netflix.config.DynamicIntProperty connIdleEvictTimeMilliSeconds)
           
 void setEnableConnectionPoolCleanerTask(boolean enableConnectionPoolCleanerTask)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectionPoolCleaner

public ConnectionPoolCleaner(java.lang.String name,
                             org.apache.http.conn.ClientConnectionManager connMgr)
Method Detail

getConnIdleEvictTimeMilliSeconds

public com.netflix.config.DynamicIntProperty getConnIdleEvictTimeMilliSeconds()

setConnIdleEvictTimeMilliSeconds

public void setConnIdleEvictTimeMilliSeconds(com.netflix.config.DynamicIntProperty connIdleEvictTimeMilliSeconds)

isEnableConnectionPoolCleanerTask

public boolean isEnableConnectionPoolCleanerTask()

setEnableConnectionPoolCleanerTask

public void setEnableConnectionPoolCleanerTask(boolean enableConnectionPoolCleanerTask)

getConnectionCleanerTimerDelay

public long getConnectionCleanerTimerDelay()

setConnectionCleanerTimerDelay

public void setConnectionCleanerTimerDelay(long connectionCleanerTimerDelay)

getConnectionCleanerRepeatInterval

public long getConnectionCleanerRepeatInterval()

setConnectionCleanerRepeatInterval

public void setConnectionCleanerRepeatInterval(long connectionCleanerRepeatInterval)

initTask

public void initTask()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object