public interface CommandLogger
| Modifier and Type | Method and Description |
|---|---|
void |
onCommandHandlerError(Throwable error,
Command command,
Collection<Event> events)
Called when an error occurs during the handling of a command.
|
void |
onCommandHandlerResult(Command command,
Collection<Event> events)
Called when a command handler returns a result.
|
void onCommandHandlerError(Throwable error, Command command, Collection<Event> events)
error - The error that occurred.command - The command that was handled.events - The resulting event(s). Note: command handlers are not required to produce
events.void onCommandHandlerResult(Command command, Collection<Event> events)
command - The command that was handled.events - The resulting event(s). Note: command handlers are not required to produce
events.Copyright © 2016 Cooking Fox. All rights reserved.