public class LoggingCallback extends Object implements CommandCallback<Object,Object>
Modifier and Type | Field and Description |
---|---|
static LoggingCallback |
INSTANCE
The singleton instance for this callback
|
Modifier and Type | Method and Description |
---|---|
void |
onFailure(CommandMessage<?> message,
Throwable cause)
Invoked when command handling execution resulted in an error.
|
void |
onSuccess(CommandMessage message,
Object result)
Invoked when command handling execution was successful.
|
public static final LoggingCallback INSTANCE
public void onSuccess(CommandMessage message, Object result)
CommandCallback
onSuccess
in interface CommandCallback<Object,Object>
message
- The message that was dispatchedresult
- The result of the command handling execution, if any.public void onFailure(CommandMessage<?> message, Throwable cause)
CommandCallback
onFailure
in interface CommandCallback<Object,Object>
message
- The message that was dispatchedcause
- The exception raised during command handlingCopyright © 2010–2018. All rights reserved.