Class CPool

java.lang.Object
org.apache.http.nio.pool.AbstractNIOConnPool<org.apache.http.conn.routing.HttpRoute,ManagedNHttpClientConnection,CPoolEntry>
org.apache.http.impl.nio.conn.CPool
All Implemented Interfaces:
org.apache.http.pool.ConnPool<org.apache.http.conn.routing.HttpRoute,CPoolEntry>, org.apache.http.pool.ConnPoolControl<org.apache.http.conn.routing.HttpRoute>

@Contract(threading=SAFE) class CPool extends org.apache.http.nio.pool.AbstractNIOConnPool<org.apache.http.conn.routing.HttpRoute,ManagedNHttpClientConnection,CPoolEntry>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.commons.logging.Log
     
    private final long
     
    private final TimeUnit
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    CPool(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor, org.apache.http.nio.pool.NIOConnFactory<org.apache.http.conn.routing.HttpRoute,ManagedNHttpClientConnection> connFactory, org.apache.http.nio.pool.SocketAddressResolver<org.apache.http.conn.routing.HttpRoute> addressResolver, int defaultMaxPerRoute, int maxTotal, long timeToLive, TimeUnit tunit)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected CPoolEntry
    createEntry(org.apache.http.conn.routing.HttpRoute route, ManagedNHttpClientConnection conn)
     
    protected void
     
    protected void
     

    Methods inherited from class org.apache.http.nio.pool.AbstractNIOConnPool

    closeExpired, closeIdle, enumAvailable, enumEntries, enumLeased, getDefaultMaxPerRoute, getMaxPerRoute, getMaxTotal, getRoutes, getStats, getTotalStats, isShutdown, lease, lease, lease, lease, onReuse, release, requestCancelled, requestCompleted, requestFailed, requestTimeout, resolveLocalAddress, resolveRemoteAddress, setDefaultMaxPerRoute, setMaxPerRoute, setMaxTotal, shutdown, toString, validatePendingRequests

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • log

      private final org.apache.commons.logging.Log log
    • timeToLive

      private final long timeToLive
    • tunit

      private final TimeUnit tunit
  • Constructor Details

    • CPool

      public CPool(org.apache.http.nio.reactor.ConnectingIOReactor ioreactor, org.apache.http.nio.pool.NIOConnFactory<org.apache.http.conn.routing.HttpRoute,ManagedNHttpClientConnection> connFactory, org.apache.http.nio.pool.SocketAddressResolver<org.apache.http.conn.routing.HttpRoute> addressResolver, int defaultMaxPerRoute, int maxTotal, long timeToLive, TimeUnit tunit)
  • Method Details