org.apache.http.impl.nio.conn
Class PoolingClientConnectionManager

java.lang.Object
  extended by org.apache.http.impl.nio.conn.PoolingClientConnectionManager
All Implemented Interfaces:
ClientConnectionManager, org.apache.http.nio.reactor.IOReactor

public class PoolingClientConnectionManager
extends Object
implements ClientConnectionManager


Constructor Summary
PoolingClientConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor)
           
PoolingClientConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor, SchemeRegistry schemeRegistry)
           
PoolingClientConnectionManager(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor, SchemeRegistry schemeRegistry, long timeToLive, TimeUnit tunit)
           
 
Method Summary
 void closeExpiredConnections()
           
 void closeIdleConnections(long idleTimeout, TimeUnit tunit)
           
 void execute(org.apache.http.nio.reactor.IOEventDispatch eventDispatch)
           
 SchemeRegistry getSchemeRegistry()
           
 PoolStats getStats(HttpRoute route)
           
 org.apache.http.nio.reactor.IOReactorStatus getStatus()
           
 PoolStats getTotalStats()
           
 Future<ManagedClientConnection> leaseConnection(HttpRoute route, Object state, long timeout, TimeUnit tunit, FutureCallback<ManagedClientConnection> callback)
           
 void releaseConnection(ManagedClientConnection conn, long validDuration, TimeUnit tunit)
           
 void setDefaultMaxPerHost(int max)
           
 void setMaxPerHost(HttpRoute route, int max)
           
 void setTotalMax(int max)
           
 void shutdown()
           
 void shutdown(long waitMs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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
Method Detail

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.