CompletionStage<S>
, Future<S>
, Promise<S>
public static class Promise.Completable<S> extends CompletableFuture<S> implements Promise<S>
A CompletableFuture that is also a Promise.
CompletableFuture.AsynchronousCompletionTask
Promise.Completable<S>
Constructor | Description |
---|---|
Completable() |
Modifier and Type | Method | 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, completeAsync, completeAsync, completedFuture, completedStage, completeExceptionally, completeOnTimeout, copy, defaultExecutor, delayedExecutor, delayedExecutor, exceptionally, failedFuture, failedStage, get, get, getNow, getNumberOfDependents, handle, handleAsync, handleAsync, isCancelled, isCompletedExceptionally, isDone, join, minimalCompletionStage, newIncompleteFuture, obtrudeException, obtrudeValue, orTimeout, 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, whenCompleteAsync
Copyright © 2008–2017 The CometD Project. All rights reserved.