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

public class DenyCommandNameFilter extends Object implements CommandMessageFilter
A CommandMessageFilter implementation which denies CommandMessages based on their CommandMessage.getCommandName(). It can be combined with other CommandMessageFilter instances in an efficient manner.
Since:
3.0
Author:
Koen Lavooij, Allard Buijze
See Also:
  • Constructor Details

    • DenyCommandNameFilter

      @ConstructorProperties("commandNames") public DenyCommandNameFilter(Set<String> commandNames)
      Initializes a DenyCommandNameFilter from the given set of commandNames. Commands with a name that is present in this set will be blocked by this filter.
      Parameters:
      commandNames - the names of commands blocked by this filter
    • DenyCommandNameFilter

      public DenyCommandNameFilter(String commandName)
      Initializes a DenyCommandNameFilter for a single commandName. Commands with a name equal to the given commandName will be blocked by this filter.
      Parameters:
      commandName - the name of the command blocked by this filter
  • Method Details