T
- type of the future's valuepublic interface CompletableFuture<T> extends Future<T>
Modifier and Type | Method and Description |
---|---|
boolean |
complete(T value)
Completes the future with the given value.
|
boolean |
completeExceptionally(Throwable t)
Completes the future with the given exception.
|
cancel, exceptionally, exceptionallyAsync, get, get, getNow, handle, handleAsync, isDone, thenAccept, thenAcceptAsync, thenApply, thenApplyAsync, thenCombine, thenCombineAsync, thenCompose, thenComposeAsync
boolean complete(T value)
value
- to complete the future withboolean completeExceptionally(Throwable t)
t
- the exception to complete the future withCopyright © 2014–2018 The Apache Software Foundation. All rights reserved.