Package org.apache.hc.core5.pool
Class StrictConnPool.LeaseRequest<T,C extends ModalCloseable>
- java.lang.Object
-
- org.apache.hc.core5.pool.StrictConnPool.LeaseRequest<T,C>
-
- Enclosing class:
- StrictConnPool<T,C extends ModalCloseable>
static class StrictConnPool.LeaseRequest<T,C extends ModalCloseable> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LeaseRequest(T route, java.lang.Object state, Timeout requestTimeout, BasicFuture<PoolEntry<T,C>> future)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcompleted(PoolEntry<T,C> result)voidfailed(java.lang.Exception ex)DeadlinegetDeadline()java.lang.ExceptiongetException()BasicFuture<PoolEntry<T,C>>getFuture()PoolEntry<T,C>getResult()TgetRoute()java.lang.ObjectgetState()booleanisDone()java.lang.StringtoString()
-
-
-
Field Detail
-
route
private final T route
-
state
private final java.lang.Object state
-
deadline
private final Deadline deadline
-
future
private final BasicFuture<PoolEntry<T,C extends ModalCloseable>> future
-
completed
private final java.util.concurrent.atomic.AtomicBoolean completed
-
result
private volatile PoolEntry<T,C extends ModalCloseable> result
-
ex
private volatile java.lang.Exception ex
-
-
Method Detail
-
getRoute
public T getRoute()
-
getState
public java.lang.Object getState()
-
getDeadline
public Deadline getDeadline()
-
isDone
public boolean isDone()
-
failed
public void failed(java.lang.Exception ex)
-
getFuture
public BasicFuture<PoolEntry<T,C>> getFuture()
-
getException
public java.lang.Exception getException()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-