Class H2SharingConnPool.PerRoutePool<T, C extends org.apache.hc.core5.http.HttpConnection>

java.lang.Object
org.apache.hc.client5.http.impl.nio.H2SharingConnPool.PerRoutePool<T,C>
Enclosing class:
H2SharingConnPool<T, C extends org.apache.hc.core5.http.HttpConnection>

static class H2SharingConnPool.PerRoutePool<T, C extends org.apache.hc.core5.http.HttpConnection> extends Object
Since:
5.5
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Map<org.apache.hc.core5.pool.PoolEntry<T,C>, AtomicLong>
     
    private final Lock
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) long
    getCount(org.apache.hc.core5.pool.PoolEntry<T,C> entry)
     
    (package private) AtomicLong
    getCounter(org.apache.hc.core5.pool.PoolEntry<T,C> entry)
     
    (package private) org.apache.hc.core5.pool.PoolEntry<T,C>
     
    (package private) long
    release(org.apache.hc.core5.pool.PoolEntry<T,C> entry, boolean reusable)
     
    (package private) long
    track(org.apache.hc.core5.pool.PoolEntry<T,C> entry)
     

    Methods inherited from class Object

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

    • entryMap

      private final Map<org.apache.hc.core5.pool.PoolEntry<T, C extends org.apache.hc.core5.http.HttpConnection>, AtomicLong> entryMap
    • lock

      private final Lock lock
  • Constructor Details

    • PerRoutePool

      PerRoutePool()
  • Method Details

    • getCounter

      AtomicLong getCounter(org.apache.hc.core5.pool.PoolEntry<T,C> entry)
    • track

      long track(org.apache.hc.core5.pool.PoolEntry<T,C> entry)
    • lease

      org.apache.hc.core5.pool.PoolEntry<T,C> lease()
    • release

      long release(org.apache.hc.core5.pool.PoolEntry<T,C> entry, boolean reusable)
    • getCount

      long getCount(org.apache.hc.core5.pool.PoolEntry<T,C> entry)