java.lang.Object
org.fuin.cqrs4j.AbstractMultiCommandExecutor<CONTEXT,RESULT>
org.fuin.cqrs4j.MultiCommandExecutor<CONTEXT,RESULT>
- Type Parameters:
CONTEXT- Type of context for the command execution.RESULT- Result of the command execution.
- All Implemented Interfaces:
CommandExecutor<CONTEXT,RESULT, Command>
public final class MultiCommandExecutor<CONTEXT,RESULT>
extends AbstractMultiCommandExecutor<CONTEXT,RESULT>
Handles multiple commands by delegating the call to other executors.
-
Constructor Summary
ConstructorsConstructorDescriptionMultiCommandExecutor(@NotEmpty List<CommandExecutor> cmdExecutors) Constructor with mandatory data.MultiCommandExecutor(@NotEmpty CommandExecutor... cmdExecutors) Constructor with command handler array. -
Method Summary
Methods inherited from class org.fuin.cqrs4j.AbstractMultiCommandExecutor
execute, getCommandTypes
-
Constructor Details
-
MultiCommandExecutor
Constructor with command handler array.- Parameters:
cmdExecutors- Array of command executors.
-
MultiCommandExecutor
Constructor with mandatory data.- Parameters:
cmdExecutors- List of command executors.
-