R - result typepublic class FailsafeFuture<R> extends CompletableFuture<R>
Part of the Failsafe SPI.
CompletableFuture.AsynchronousCompletionTask| Modifier and Type | Method and Description |
|---|---|
boolean |
cancel(boolean mayInterruptIfRunning)
Cancels this and the internal delegate.
|
boolean |
complete(R value)
If not already completed, completes the future with the
value, calling the complete and success handlers. |
boolean |
completeExceptionally(Throwable failure)
If not already completed, completes the future with the
failure, calling the complete and failure
handlers. |
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, completedFuture, exceptionally, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, 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 boolean complete(R value)
value, calling the complete and success handlers.complete in class CompletableFuture<R>public boolean completeExceptionally(Throwable failure)
failure, calling the complete and failure
handlers.completeExceptionally in class CompletableFuture<R>Copyright © 2021. All rights reserved.