org.apache.http.impl.nio.conn
Class PoolingClientConnectionManager
java.lang.Object
org.apache.http.impl.nio.conn.PoolingClientConnectionManager
- All Implemented Interfaces:
- ClientConnectionManager
public class PoolingClientConnectionManager
- extends Object
- implements ClientConnectionManager
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PoolingClientConnectionManager
public PoolingClientConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor,
SchemeRegistry schemeRegistry,
long timeToLive,
TimeUnit tunit)
PoolingClientConnectionManager
public PoolingClientConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor,
SchemeRegistry schemeRegistry)
PoolingClientConnectionManager
public PoolingClientConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor)
getSchemeRegistry
public SchemeRegistry getSchemeRegistry()
- Specified by:
getSchemeRegistry
in interface ClientConnectionManager
leaseConnection
public Future<ManagedClientConnection> leaseConnection(HttpRoute route,
Object state,
long timeout,
TimeUnit tunit,
FutureCallback<ManagedClientConnection> callback)
- Specified by:
leaseConnection
in interface ClientConnectionManager
releaseConnection
public void releaseConnection(ManagedClientConnection conn,
long validDuration,
TimeUnit tunit)
- Specified by:
releaseConnection
in interface ClientConnectionManager
getTotalStats
public PoolStats getTotalStats()
getStats
public PoolStats getStats(HttpRoute route)
setTotalMax
public void setTotalMax(int max)
setDefaultMaxPerHost
public void setDefaultMaxPerHost(int max)
setMaxPerHost
public void setMaxPerHost(HttpRoute route,
int max)
closeIdleConnections
public void closeIdleConnections(long idleTimeout,
TimeUnit tunit)
closeExpiredConnections
public void closeExpiredConnections()
shutdown
public void shutdown()
- Specified by:
shutdown
in interface ClientConnectionManager
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.