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) throws Exception
CallbackBehaviorhandle in interface CallbackBehaviorcommandPayload - The payload of the Command MessagecommandMetaData - The MetaData of the CommandMessageException - If the onFailure method of the callback must be invokedCopyright © 2010–2017. All rights reserved.