public static class Callback.Completable extends CompletableFuture<Void> implements Callback
A CompletableFuture that is also a Callback.
CompletableFuture.AsynchronousCompletionTaskCallback.Completable, Callback.NestedInvocable.InvocationType__nonBlocking| Constructor and Description |
|---|
Completable() |
Completable(Invocable.InvocationType invocation) |
| Modifier and Type | Method and Description |
|---|---|
void |
failed(Throwable x)
Callback invoked when the operation fails.
|
Invocable.InvocationType |
getInvocationType() |
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, whenCompleteAsyncclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetInvocationType, invokeNonBlocking, isNonBlockingInvocationpublic Completable()
public Completable(Invocable.InvocationType invocation)
public void succeeded()
CallbackCallback invoked when the operation completes.
succeeded in interface CallbackCallback.failed(Throwable)public void failed(Throwable x)
CallbackCallback invoked when the operation fails.
public Invocable.InvocationType getInvocationType()
getInvocationType in interface InvocableCopyright © 1995–2018 Webtide. All rights reserved.