|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.axonframework.commandhandling.callbacks.LoggingCallback
public class LoggingCallback
CommandCallback implementation that simply logs the results of a command.
Constructor Summary | |
---|---|
LoggingCallback(CommandMessage<?> message)
Initialize a LoggingCallback for the given message . |
Method Summary | |
---|---|
void |
onFailure(Throwable cause)
Invoked when command handling execution resulted in an error. |
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 |
Constructor Detail |
---|
public LoggingCallback(CommandMessage<?> message)
message
.
message
- The message for which the results are to be logged.Method Detail |
---|
public void onSuccess(Object result)
CommandCallback
onSuccess
in interface CommandCallback<Object>
result
- The result of the command handling execution, if any.public void onFailure(Throwable cause)
CommandCallback
onFailure
in interface CommandCallback<Object>
cause
- The exception raised during command handling
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |