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 void
completed(PoolEntry<T,C> result)
void
failed(java.lang.Exception ex)
Deadline
getDeadline()
java.lang.Exception
getException()
BasicFuture<PoolEntry<T,C>>
getFuture()
PoolEntry<T,C>
getResult()
T
getRoute()
java.lang.Object
getState()
boolean
isDone()
java.lang.String
toString()
-
-
-
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:
toString
in classjava.lang.Object
-
-