org.apache.http.impl.nio.conn
Class PoolingClientConnectionManager
java.lang.Object
org.apache.http.impl.nio.conn.PoolingClientConnectionManager
- All Implemented Interfaces:
- ClientConnectionManager, org.apache.http.nio.reactor.IOReactor
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)
throws org.apache.http.nio.reactor.IOReactorException
- Throws:
org.apache.http.nio.reactor.IOReactorException
PoolingClientConnectionManager
public PoolingClientConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor)
throws org.apache.http.nio.reactor.IOReactorException
- Throws:
org.apache.http.nio.reactor.IOReactorException
getSchemeRegistry
public SchemeRegistry getSchemeRegistry()
- Specified by:
getSchemeRegistry
in interface ClientConnectionManager
execute
public void execute(org.apache.http.nio.reactor.IOEventDispatch eventDispatch)
throws IOException
- Specified by:
execute
in interface org.apache.http.nio.reactor.IOReactor
- Throws:
IOException
getStatus
public org.apache.http.nio.reactor.IOReactorStatus getStatus()
- Specified by:
getStatus
in interface org.apache.http.nio.reactor.IOReactor
shutdown
public void shutdown(long waitMs)
throws IOException
- Specified by:
shutdown
in interface org.apache.http.nio.reactor.IOReactor
- Throws:
IOException
shutdown
public void shutdown()
throws IOException
- Specified by:
shutdown
in interface org.apache.http.nio.reactor.IOReactor
- Throws:
IOException
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()
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.