public class SpringHttpCommandBusConnector.SpringHttpReplyFutureCallback<C,R> extends CompletableFuture<SpringHttpReplyMessage> implements CommandCallback<C,R>
CompletableFuture.AsynchronousCompletionTask
Constructor and Description |
---|
SpringHttpReplyFutureCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onFailure(CommandMessage commandMessage,
Throwable cause)
Invoked when command handling execution resulted in an error.
|
void |
onSuccess(CommandMessage<? extends C> commandMessage,
R result)
Invoked when command handling execution was successful.
|
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, whenCompleteAsync
public void onSuccess(CommandMessage<? extends C> commandMessage, R result)
CommandCallback
onSuccess
in interface CommandCallback<C,R>
commandMessage
- The message that was dispatchedresult
- The result of the command handling execution, if any.public void onFailure(CommandMessage commandMessage, Throwable cause)
CommandCallback
onFailure
in interface CommandCallback<C,R>
commandMessage
- The message that was dispatchedcause
- The exception raised during command handlingCopyright © 2010–2018. All rights reserved.