public static class Promise.Completable<S> extends CompletableFuture<S> implements Promise<S>
A CompletableFuture that is also a Promise.
CompletableFuture.AsynchronousCompletionTaskPromise.Completable<S>| Constructor and Description |
|---|
Completable() |
| Modifier and Type | Method and Description |
|---|---|
void |
fail(Throwable failure)
Callback to invoke when the operation fails.
|
void |
succeed(S result)
Callback to invoke when the operation succeeds.
|
acceptEither, acceptEitherAsync, acceptEitherAsync, allOf, anyOf, applyToEither, applyToEitherAsync, applyToEitherAsync, cancel, complete, completedFuture, completeExceptionally, 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, whenCompleteAsyncCopyright © 2008–2025 The CometD Project. All rights reserved.