java.lang.Object
org.axonframework.commandhandling.distributed.commandfilter.CommandNameFilter
All Implemented Interfaces:
Serializable, CommandMessageFilter

public class CommandNameFilter extends Object implements CommandMessageFilter
A CommandMessageFilter implementation which filters CommandMessages by the CommandMessage.getCommandName(). It can be combined with other CommandMessageFilter instances in an efficient manner.
Since:
3.0
Author:
Koen Lavooij
See Also:
  • Constructor Details

    • CommandNameFilter

      @ConstructorProperties("commandNames") public CommandNameFilter(Set<String> commandNames)
      Initializes a CommandNameFilter for the given set of commandNames.
      Parameters:
      commandNames - commands that can be handled
    • CommandNameFilter

      public CommandNameFilter(String commandName)
      Initializes a CommandNameFilter for a single command name.
      Parameters:
      commandName - command that can be handled
  • Method Details