Class RouteSegmentedConnPool.Waiter
java.lang.Object
java.util.concurrent.CompletableFuture<PoolEntry<R,C>>
org.apache.hc.core5.pool.RouteSegmentedConnPool.Waiter
- All Implemented Interfaces:
CompletionStage<PoolEntry<R,C>>, Future<PoolEntry<R, C>>
- Enclosing class:
RouteSegmentedConnPool<R, C extends ModalCloseable>
- Since:
- 5.4
-
Nested Class Summary
Nested classes/interfaces inherited from class CompletableFuture
CompletableFuture.AsynchronousCompletionTaskNested classes/interfaces inherited from interface Future
Future.State -
Field Summary
FieldsModifier and TypeFieldDescription(package private) boolean(package private) final Timeout(package private) final R(package private) final RouteSegmentedConnPool<R,C>.Segment (package private) final Object(package private) ScheduledFuture<?> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, exceptionallyAsync, exceptionallyAsync, exceptionallyCompose, exceptionallyComposeAsync, exceptionallyComposeAsync, exceptionNow, failedFuture, failedStage, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, resultNow, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, state, supplyAsync, supplyAsync, thenAccept, thenAcceptAsync, thenAcceptAsync, thenAcceptBoth, thenAcceptBothAsync, thenAcceptBothAsync, thenApply, thenApplyAsync, thenApplyAsync, thenCombine, thenCombineAsync, thenCombineAsync, thenCompose, thenComposeAsync, thenComposeAsync, thenRun, thenRunAsync, thenRunAsync, toCompletableFuture, toString, whenComplete, whenCompleteAsync, whenCompleteAsync
-
Field Details
-
route
-
seg
-
requestTimeout
-
state
-
cancelled
volatile boolean cancelled -
timeoutTask
-
-
Constructor Details
-
Waiter
-
-
Method Details
-
cancel
public boolean cancel(boolean mayInterruptIfRunning) - Specified by:
cancelin interfaceFuture<PoolEntry<R, C extends ModalCloseable>>- Overrides:
cancelin classCompletableFuture<PoolEntry<R, C extends ModalCloseable>>
-
get
public PoolEntry<R,C> get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceFuture<PoolEntry<R, C extends ModalCloseable>>- Overrides:
getin classCompletableFuture<PoolEntry<R, C extends ModalCloseable>>- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-