public class FutureAdapter<V> extends CompletableFuture<V>
CompletableFuture.AsynchronousCompletionTask| Constructor and Description |
|---|
FutureAdapter(ResponseFuture future) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
ResponseFuture |
getFuture() |
CompletableFuture<Result> |
getResultFuture()
FIXME
This method has no need open to the the end user.
|
boolean |
isCancelled() |
boolean |
isDone() |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, complete, completedFuture, completeExceptionally, exceptionally, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCompletedExceptionally, join, obtrudeException, obtrudeValue, 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, whenCompleteAsyncpublic FutureAdapter(ResponseFuture future)
public ResponseFuture getFuture()
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled in interface Future<V>isCancelled in class CompletableFuture<V>public boolean isDone()
public V get() throws InterruptedException, ExecutionException
get in interface Future<V>get in class CompletableFuture<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get in interface Future<V>get in class CompletableFuture<V>InterruptedExceptionExecutionExceptionTimeoutExceptionpublic CompletableFuture<Result> getResultFuture()
Copyright © 2011–2019 The Apache Software Foundation. All rights reserved.