R - the type of result of the command handlingC - the type of payload of the commandpublic interface CommandCallback<C,R>
onSuccess(CommandMessage, Object) or the onFailure(CommandMessage, Throwable) is called.| Modifier and Type | Method and Description |
|---|---|
void |
onFailure(CommandMessage<? extends C> 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.
|
void onSuccess(CommandMessage<? extends C> commandMessage, R result)
commandMessage - The message that was dispatchedresult - The result of the command handling execution, if any.void onFailure(CommandMessage<? extends C> commandMessage, Throwable cause)
commandMessage - The message that was dispatchedcause - The exception raised during command handlingCopyright © 2010–2017. All rights reserved.