R - the type of result of the command handlingC - the type of payload of the commandpublic class MonitorAwareCallback<C,R> extends Object implements CommandCallback<C,R>
| Constructor and Description |
|---|
MonitorAwareCallback(CommandCallback<C,R> delegate,
MessageMonitor.MonitorCallback messageMonitorCallback)
Initialize a callback wrapped around the
delegate which will notify a Message Monitor for the given messageMonitorCallback. |
| Modifier and Type | Method and Description |
|---|---|
void |
onResult(CommandMessage<? extends C> commandMessage,
CommandResultMessage<? extends R> commandResultMessage)
Invoked when command handling execution is completed.
|
public MonitorAwareCallback(CommandCallback<C,R> delegate, MessageMonitor.MonitorCallback messageMonitorCallback)
delegate which will notify a Message Monitor for the given messageMonitorCallback.delegate - the CommandCallback which is being wrapped, may be nullmessageMonitorCallback - the callback for the Message Monitorpublic void onResult(CommandMessage<? extends C> commandMessage, CommandResultMessage<? extends R> commandResultMessage)
CommandCallbackonResult in interface CommandCallback<C,R>commandMessage - the CommandMessage that was dispatchedcommandResultMessage - the CommandResultMessage of the command handling executionCopyright © 2010–2020. All rights reserved.