public class DefaultCallbackBehavior extends Object implements CallbackBehavior
null
,
which results in the CommandCallback.onSuccess(org.axonframework.commandhandling.CommandMessage, Object)
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–2018. All rights reserved.