public class DefaultCallbackBehavior extends Object implements CallbackBehavior
null
, which
results in the CommandCallback.onResult(org.axonframework.commandhandling.CommandMessage,
CommandResultMessage)
method to be invoked with a null
result
parameter.Constructor and Description |
---|
DefaultCallbackBehavior() |
Modifier and Type | Method and Description |
---|---|
Object |
handle(Object commandPayload,
MetaData commandMetaData)
Invoked when the Command Bus receives a Command that is dispatched with a Callback method.
|
public Object handle(Object commandPayload, MetaData commandMetaData)
CallbackBehavior
handle
in interface CallbackBehavior
commandPayload
- The payload of the Command MessagecommandMetaData
- The MetaData of the CommandMessageCopyright © 2010–2020. All rights reserved.