public static class Callback.Completable extends CompletableFuture<Void> implements Callback
A CompletableFuture that is also a Callback.
CompletableFuture.AsynchronousCompletionTaskCallback.Completable, Callback.Nested, Callback.NonBlocking| 构造器和说明 |
|---|
Completable() |
Completable(boolean blocking) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
failed(Throwable x)
Callback invoked when the operation fails.
|
boolean |
isNonBlocking() |
void |
succeeded()
Callback invoked when the operation completes.
|
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, whenCompleteAsyncpublic void succeeded()
CallbackCallback invoked when the operation completes.
succeeded 在接口中 CallbackCallback.failed(Throwable)public void failed(Throwable x)
CallbackCallback invoked when the operation fails.
public boolean isNonBlocking()
isNonBlocking 在接口中 CallbackCopyright © 2016. All rights reserved.