Interface CommandBus

All Superinterfaces:
CommandHandlerRegistry<CommandBus>, DescribableComponent
All Known Implementing Classes:
DistributedCommandBus, InterceptingCommandBus, RecordingCommandBus, RecordingCommandBus, RetryingCommandBus, SimpleCommandBus, TracingCommandBus

public interface CommandBus extends CommandHandlerRegistry<CommandBus>, DescribableComponent
The mechanism that dispatches commands to their appropriate command handler.

Command handlers can subscribe to the command bus to handle commands matching the QualifiedName in the command type.

Hence, commands dispatched match a command handler based on "command name."

Only a single handler may be subscribed for a given command name at any time.

Since:
0.5
Author:
Allard Buijze