| Modifier and Type | Method and Description |
|---|---|
<C extends Command,E extends Event> |
CommandBus.mapCommandHandler(Class<C> commandClass,
CommandHandler<S,C,E> commandHandler)
Map a command handler for a concrete command type.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CommandBus.handleCommand(Command command)
Execute the command handler that is mapped to this command type.
|
| Constructor and Description |
|---|
NoRegisteredCommandLoggerException(Throwable cause,
Command command) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
AsyncCommandHandler<S extends State,C extends Command,E extends Event>
Command handler that handles its command asynchronously and produces zero or one event.
|
interface |
AsyncMultiCommandHandler<S extends State,C extends Command,E extends Event>
Command handler that handles its command asynchronously and produces multiple events.
|
interface |
CommandHandler<S extends State,C extends Command,E extends Event>
Base interface for a command handler.
|
interface |
MultiCommandHandler<S extends State,C extends Command,E extends Event>
Base interface for a command handler that produces multiple events.
|
interface |
SyncCommandHandler<S extends State,C extends Command,E extends Event>
Command handler that handles its command synchronously and produces zero or one event.
|
interface |
SyncMultiCommandHandler<S extends State,C extends Command,E extends Event>
Command handler that handles its command synchronously and produces multiple events.
|
interface |
VoidCommandHandler<S extends State,C extends Command>
Command handler that does not return anything.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CommandLogger.onCommandHandlerError(Throwable error,
Command command,
Collection<Event> events)
Called when an error occurs during the handling of a command.
|
void |
CommandLogger.onCommandHandlerResult(Command command,
Collection<Event> events)
Called when a command handler returns a result.
|
| Modifier and Type | Method and Description |
|---|---|
protected <C extends Command,E extends Event> |
DefaultCommandBus.isCommandHandlerSupported(CommandHandler<S,C,E> commandHandler)
Checks whether this command handler implementation is supported.
|
<C extends Command,E extends Event> |
DefaultCommandBus.mapCommandHandler(Class<C> commandClass,
CommandHandler<S,C,E> commandHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultCommandBus.executeCommandHandler(S state,
Command command,
CommandHandler<S,Command,Event> handler)
Execute a command handler that produces 0 or 1 event.
|
protected void |
DefaultCommandBus.executeHandler(Command command,
CommandHandler<S,Command,Event> commandHandler) |
protected void |
DefaultCommandBus.executeMultiCommandHandler(S state,
Command command,
MultiCommandHandler<S,Command,Event> handler)
Execute a command handler that produces a collection of events.
|
void |
DefaultCommandBus.handleCommand(Command command) |
protected void |
DefaultCommandBus.handleMultiResult(Throwable error,
Command command,
Collection<Event> events)
Handle result from a 'multi' command handler.
|
protected void |
DefaultCommandBus.handleResult(Throwable error,
Command command,
Event event)
Handle result from a 'single' command handler.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
DefaultCommandBus.executeCommandHandler(S state,
Command command,
CommandHandler<S,Command,Event> handler)
Execute a command handler that produces 0 or 1 event.
|
protected void |
DefaultCommandBus.executeHandler(Command command,
CommandHandler<S,Command,Event> commandHandler) |
protected void |
DefaultCommandBus.executeMultiCommandHandler(S state,
Command command,
MultiCommandHandler<S,Command,Event> handler)
Execute a command handler that produces a collection of events.
|
| Modifier and Type | Method and Description |
|---|---|
<C extends Command,E extends Event> |
LaPasseFacadeDelegate.mapCommandHandler(Class<C> commandClass,
CommandHandler<S,C,E> commandHandler) |
<C extends Command,E extends Event> |
LaPasseFacade.mapCommandHandler(Class<C> commandClass,
CommandHandler<S,C,E> commandHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
LaPasseFacadeDelegate.handleCommand(Command command) |
void |
LaPasseFacade.handleCommand(Command command) |
| Modifier and Type | Method and Description |
|---|---|
void |
DefaultLoggersHelper.onCommandHandlerError(Throwable error,
Command command,
Collection<Event> events) |
void |
DefaultLogger.onCommandHandlerError(Throwable error,
Command command,
Collection<Event> events) |
void |
DefaultLoggersHelper.onCommandHandlerResult(Command command,
Collection<Event> events) |
void |
DefaultLogger.onCommandHandlerResult(Command command,
Collection<Event> events) |
Copyright © 2016 Cooking Fox. All rights reserved.