Package org.apache.hc.core5.pool
Class LaxConnPool.LeaseRequest<T,C extends ModalCloseable>
java.lang.Object
org.apache.hc.core5.pool.LaxConnPool.LeaseRequest<T,C>
- All Implemented Interfaces:
Cancellable
- Enclosing class:
LaxConnPool<T,
C extends ModalCloseable>
static class LaxConnPool.LeaseRequest<T,C extends ModalCloseable>
extends Object
implements Cancellable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLeaseRequest
(Object state, Timeout requestTimeout, BasicFuture<PoolEntry<T, C>> future) -
Method Summary
-
Field Details
-
state
-
deadline
-
future
-
-
Constructor Details
-
LeaseRequest
-
-
Method Details
-
getFuture
BasicFuture<PoolEntry<T,C>> getFuture() -
getState
-
getDeadline
-
isDone
public boolean isDone() -
completed
-
failed
-
cancel
public boolean cancel()Description copied from interface:Cancellable
Cancels the ongoing operation or process.- Specified by:
cancel
in interfaceCancellable
- Returns:
true
if the operation or process has been cancelled as a result of this method call orfalse
if it has already been cancelled or not started.
-