public class LoggingCallback extends Object implements CommandCallback<Object>
Constructor and Description |
---|
LoggingCallback(CommandMessage<?> message)
Initialize a LoggingCallback for the given
message . |
public LoggingCallback(CommandMessage<?> message)
message
.message
- The message for which the results are to be logged.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 handlingCopyright © 2010-2014. All Rights Reserved.