org.axonframework.commandhandling.callbacks
Class VoidCallback
java.lang.Object
org.axonframework.commandhandling.callbacks.VoidCallback
- All Implemented Interfaces:
- CommandCallback<Object>
public abstract class VoidCallback
- extends Object
- implements CommandCallback<Object>
Abstract callback that can be extended when no result is expected from the command handler execution.
- Since:
- 0.6
- Author:
- Allard Buijze
Method Summary |
protected abstract void |
onSuccess()
Invoked when command handling execution was successful. |
void |
onSuccess(Object result)
Invoked when command handling execution was successful. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VoidCallback
public VoidCallback()
onSuccess
public void onSuccess(Object result)
- Invoked when command handling execution was successful.
This implementation merely invokes
onSuccess()
.
- Specified by:
onSuccess
in interface CommandCallback<Object>
- Parameters:
result
- The result of the command handling execution, if any.
onSuccess
protected abstract void onSuccess()
- Invoked when command handling execution was successful.
Copyright © 2010-2016. All Rights Reserved.