server
1.9.0
jvm
server
/
io.spine.server.commandbus
/
CommandDispatcher
Command
Dispatcher
public
interface
CommandDispatcher
implements
UnicastDispatcher
<
C
,
E
>
Delivers commands to their handlers.
A dispatcher can deliver more than one class of commands.
Inheritors
DelegatingCommandDispatcher
AggregateRepository
AbstractCommandDispatcher
Members
Functions
dispatches
Commands
Link copied to clipboard
public
boolean
dispatchesCommands
(
)
Verifies if this instance dispatches at least one command.
Inherited functions
can
Dispatch
Link copied to clipboard
public
boolean
canDispatch
(
E
envelope
)
Checks if this dispatcher can dispatch the given message.
dispatch
Link copied to clipboard
public
abstract
DispatchOutcome
dispatch
(
E
envelope
)
Dispatches the message contained in the passed envelope and returns the outcome.
message
Classes
Link copied to clipboard
public
abstract
ImmutableSet<C>
messageClasses
(
)
Obtains a set of message classes that can be processed by this dispatcher.