Class LoggingCallback
java.lang.Object
org.axonframework.commandhandling.callbacks.LoggingCallback
- All Implemented Interfaces:
CommandCallback<Object,Object>
CommandCallback implementation that simply logs the results of a command.
- Since:
- 2.0
- Author:
- Allard Buijze
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LoggingCallbackThe singleton instance for this callback -
Method Summary
Modifier and TypeMethodDescriptionvoidonResult(CommandMessage message, CommandResultMessage commandResultMessage) Invoked when command handling execution is completed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.axonframework.commandhandling.CommandCallback
wrap
-
Field Details
-
INSTANCE
The singleton instance for this callback
-
-
Method Details
-
onResult
public void onResult(@Nonnull CommandMessage message, @Nonnull CommandResultMessage commandResultMessage) Description copied from interface:CommandCallbackInvoked when command handling execution is completed.- Specified by:
onResultin interfaceCommandCallback<Object,Object> - Parameters:
message- theCommandMessagethat was dispatchedcommandResultMessage- theCommandResultMessageof the command handling execution
-