Class NoOpCallback
java.lang.Object
org.axonframework.commandhandling.callbacks.NoOpCallback
- All Implemented Interfaces:
CommandCallback<Object,Object>
Callback that does absolutely nothing when invoked. For performance reasons, an instance of this callback can be
obtained using
NoOpCallback.INSTANCE. A generics-compatible alternative is provided by
NoOpCallback.<C>instance().- Since:
- 0.6
- Author:
- Allard Buijze
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NoOpCallbackA statically available instance of the NoOpCallback. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonResult(CommandMessage<?> commandMessage, 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
A statically available instance of the NoOpCallback. Provided for performance reasons.
-
-
Constructor Details
-
NoOpCallback
public NoOpCallback()
-
-
Method Details
-
onResult
public void onResult(@Nonnull CommandMessage<?> commandMessage, @Nonnull CommandResultMessage<?> commandResultMessage) Invoked when command handling execution is completed. This implementation does nothing.- Specified by:
onResultin interfaceCommandCallback<Object,Object> - Parameters:
commandMessage- theCommandMessagethat was dispatchedcommandResultMessage- theCommandResultMessageof the command handling execution
-