Interface Command


public interface Command
Interface to be implemented by commands that can be handled by CommandHandlers.
See Also:
  • Method Details

    • getSubject

      String getSubject()
      Specifies the subject of this command, needed to source the necessary events for the command execution.
      Returns:
      the subject path
    • getSubjectCondition

      default Command.SubjectCondition getSubjectCondition()
      Specifies the condition to check for the given getSubject() before a CommandHandler will be executed.
      Returns:
      the subject condition to check for