Class 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 org.apache.commons.logging.Log log  
      private long timeToLive  
      private java.util.concurrent.TimeUnit tunit  
    • 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, java.util.concurrent.TimeUnit tunit)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected CPoolEntry createEntry​(org.apache.http.conn.routing.HttpRoute route, ManagedNHttpClientConnection conn)  
      protected void onLease​(CPoolEntry entry)  
      protected void onRelease​(CPoolEntry entry)  
      • 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 Detail

      • log

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

        private final long timeToLive
      • tunit

        private final java.util.concurrent.TimeUnit tunit
    • Constructor Detail

      • 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,
                     java.util.concurrent.TimeUnit tunit)