Package org.apache.hc.core5.pool
Class RouteSegmentedConnPool.Waiter
- java.lang.Object
-
- java.util.concurrent.CompletableFuture<PoolEntry<R,C>>
-
- org.apache.hc.core5.pool.RouteSegmentedConnPool.Waiter
-
- All Implemented Interfaces:
java.util.concurrent.CompletionStage<PoolEntry<R,C>>,java.util.concurrent.Future<PoolEntry<R,C>>
- Enclosing class:
- RouteSegmentedConnPool<R,C extends ModalCloseable>
final class RouteSegmentedConnPool.Waiter extends java.util.concurrent.CompletableFuture<PoolEntry<R,C>>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleancancelled(package private) TimeoutrequestTimeout(package private) Rroute(package private) java.lang.Objectstate(package private) java.util.concurrent.ScheduledFuture<?>timeoutTask
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PoolEntry<R,C>get(long timeout, java.util.concurrent.TimeUnit unit)-
Methods inherited from class java.util.concurrent.CompletableFuture
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, failedFuture, failedStage, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, runAfterBoth, runAfterBothAsync, runAfterBothAsync, runAfterEither, runAfterEitherAsync, runAfterEitherAsync, runAsync, runAsync, 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
-
-
-
-
Method Detail
-
get
public PoolEntry<R,C> get(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, java.util.concurrent.TimeoutException
- Specified by:
getin interfacejava.util.concurrent.Future<PoolEntry<R,C extends ModalCloseable>>- Overrides:
getin classjava.util.concurrent.CompletableFuture<PoolEntry<R,C extends ModalCloseable>>- Throws:
java.lang.InterruptedExceptionjava.util.concurrent.ExecutionExceptionjava.util.concurrent.TimeoutException
-
-