public class FutureAdapter<V> extends CompletableFuture<V>
cancel(boolean)CompletableFuture.AsynchronousCompletionTask| 构造器和说明 |
|---|
FutureAdapter(CompletableFuture<AppResponse> future) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning) |
V |
get() |
V |
get(long timeout,
TimeUnit unit) |
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(CompletableFuture<AppResponse> future)
public boolean cancel(boolean mayInterruptIfRunning)
public boolean isCancelled()
isCancelled 在接口中 Future<V>isCancelled 在类中 CompletableFuture<V>public V get() throws InterruptedException, ExecutionException
get 在接口中 Future<V>get 在类中 CompletableFuture<V>InterruptedExceptionExecutionExceptionpublic V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
get 在接口中 Future<V>get 在类中 CompletableFuture<V>InterruptedExceptionExecutionExceptionTimeoutExceptionCopyright © 2011–2021 The Apache Software Foundation. All rights reserved.