public final class NoOpCallback extends Object implements CommandCallback<Object,Object>
NoOpCallback.INSTANCE
. A generics-compatible alternative is provided by
NoOpCallback.<C>instance()
.Modifier and Type | Field and Description |
---|---|
static NoOpCallback |
INSTANCE
A statically available instance of the NoOpCallback.
|
Constructor and Description |
---|
NoOpCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onFailure(CommandMessage<?> commandMessage,
Throwable cause)
Invoked when command handling execution resulted in an error.
|
void |
onSuccess(CommandMessage<?> commandMessage,
Object result)
Invoked when command handling execution was successful.
|
public static final NoOpCallback INSTANCE
public void onSuccess(CommandMessage<?> commandMessage, Object result)
onSuccess
in interface CommandCallback<Object,Object>
commandMessage
- The message that was dispatchedresult
- The result of the command handling execution, if any.public void onFailure(CommandMessage<?> commandMessage, Throwable cause)
onFailure
in interface CommandCallback<Object,Object>
commandMessage
- The message that was dispatchedcause
- The exception raised during command handlingCopyright © 2010–2017. All rights reserved.