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 java.lang.Object implements Cancellable
-
-
Constructor Summary
Constructors Constructor Description LeaseRequest(java.lang.Object state, Timeout requestTimeout, BasicFuture<PoolEntry<T,C>> future)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel()
Cancels the ongoing operation or process.boolean
completed(PoolEntry<T,C> result)
boolean
failed(java.lang.Exception ex)
Deadline
getDeadline()
(package private) BasicFuture<PoolEntry<T,C>>
getFuture()
java.lang.Object
getState()
boolean
isDone()
-
-
-
Field Detail
-
state
private final java.lang.Object state
-
deadline
private final Deadline deadline
-
future
private final BasicFuture<PoolEntry<T,C extends ModalCloseable>> future
-
-
Constructor Detail
-
LeaseRequest
LeaseRequest(java.lang.Object state, Timeout requestTimeout, BasicFuture<PoolEntry<T,C>> future)
-
-
Method Detail
-
getFuture
BasicFuture<PoolEntry<T,C>> getFuture()
-
getState
public java.lang.Object getState()
-
getDeadline
public Deadline getDeadline()
-
isDone
public boolean isDone()
-
failed
public boolean failed(java.lang.Exception ex)
-
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.
-
-