Class MultiCommandExecutor<CONTEXT,RESULT>

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 Details

    • MultiCommandExecutor

      public MultiCommandExecutor(@NotEmpty @NotEmpty CommandExecutor... cmdExecutors)
      Constructor with command handler array.
      Parameters:
      cmdExecutors - Array of command executors.
    • MultiCommandExecutor

      public MultiCommandExecutor(@NotEmpty @NotEmpty List<CommandExecutor> cmdExecutors)
      Constructor with mandatory data.
      Parameters:
      cmdExecutors - List of command executors.