Package org.apache.hc.core5.pool
Class StrictConnPool.PerRoutePool<T,C extends ModalCloseable>
- java.lang.Object
-
- org.apache.hc.core5.pool.StrictConnPool.PerRoutePool<T,C>
-
- Enclosing class:
- StrictConnPool<T,C extends ModalCloseable>
static class StrictConnPool.PerRoutePool<T,C extends ModalCloseable> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PerRoutePool(T route, DisposalCallback<C> disposalCallback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PoolEntry<T,C>
createEntry(TimeValue timeToLive)
void
free(PoolEntry<T,C> entry, boolean reusable)
int
getAllocatedCount()
int
getAvailableCount()
PoolEntry<T,C>
getFree(java.lang.Object state)
PoolEntry<T,C>
getLastUsed()
int
getLeasedCount()
T
getRoute()
boolean
remove(PoolEntry<T,C> entry)
void
shutdown(CloseMode closeMode)
java.lang.String
toString()
-
-
-
Field Detail
-
route
private final T route
-
leased
private final java.util.Set<PoolEntry<T,C extends ModalCloseable>> leased
-
available
private final java.util.LinkedList<PoolEntry<T,C extends ModalCloseable>> available
-
disposalCallback
private final DisposalCallback<C extends ModalCloseable> disposalCallback
-
-
Constructor Detail
-
PerRoutePool
PerRoutePool(T route, DisposalCallback<C> disposalCallback)
-
-
Method Detail
-
getRoute
public final T getRoute()
-
getLeasedCount
public int getLeasedCount()
-
getAvailableCount
public int getAvailableCount()
-
getAllocatedCount
public int getAllocatedCount()
-
shutdown
public void shutdown(CloseMode closeMode)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-