com.netflix.http4
Class MonitoredConnectionManager

java.lang.Object
  extended by org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager
      extended by com.netflix.http4.MonitoredConnectionManager
All Implemented Interfaces:
org.apache.http.conn.ClientConnectionManager

public class MonitoredConnectionManager
extends org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager

A connection manager that uses NamedConnectionPool, which provides connection reuse statistics, as its underlying connection pool.


Field Summary
 
Fields inherited from class org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager
connectionPool, connOperator, connPerRoute, pool, schemeRegistry
 
Constructor Summary
MonitoredConnectionManager(java.lang.String name)
           
MonitoredConnectionManager(java.lang.String name, org.apache.http.conn.scheme.SchemeRegistry schreg)
           
MonitoredConnectionManager(java.lang.String name, org.apache.http.conn.scheme.SchemeRegistry schreg, long connTTL, java.util.concurrent.TimeUnit connTTLTimeUnit)
           
 
Method Summary
protected  org.apache.http.impl.conn.tsccm.AbstractConnPool createConnectionPool(org.apache.http.params.HttpParams params)
          Deprecated. 
protected  org.apache.http.impl.conn.tsccm.ConnPoolByRoute createConnectionPool(long connTTL, java.util.concurrent.TimeUnit connTTLTimeUnit)
           
 org.apache.http.conn.ClientConnectionRequest requestConnection(org.apache.http.conn.routing.HttpRoute route, java.lang.Object state)
           
 
Methods inherited from class org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager
closeExpiredConnections, closeIdleConnections, createConnectionOperator, finalize, getConnectionsInPool, getConnectionsInPool, getDefaultMaxPerRoute, getMaxForRoute, getMaxTotal, getSchemeRegistry, releaseConnection, setDefaultMaxPerRoute, setMaxForRoute, setMaxTotal, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonitoredConnectionManager

public MonitoredConnectionManager(java.lang.String name)

MonitoredConnectionManager

public MonitoredConnectionManager(java.lang.String name,
                                  org.apache.http.conn.scheme.SchemeRegistry schreg,
                                  long connTTL,
                                  java.util.concurrent.TimeUnit connTTLTimeUnit)

MonitoredConnectionManager

public MonitoredConnectionManager(java.lang.String name,
                                  org.apache.http.conn.scheme.SchemeRegistry schreg)
Method Detail

createConnectionPool

@Deprecated
protected org.apache.http.impl.conn.tsccm.AbstractConnPool createConnectionPool(org.apache.http.params.HttpParams params)
Deprecated. 

Overrides:
createConnectionPool in class org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager

createConnectionPool

protected org.apache.http.impl.conn.tsccm.ConnPoolByRoute createConnectionPool(long connTTL,
                                                                               java.util.concurrent.TimeUnit connTTLTimeUnit)
Overrides:
createConnectionPool in class org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager

requestConnection

public org.apache.http.conn.ClientConnectionRequest requestConnection(org.apache.http.conn.routing.HttpRoute route,
                                                                      java.lang.Object state)
Specified by:
requestConnection in interface org.apache.http.conn.ClientConnectionManager
Overrides:
requestConnection in class org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager