Class RuleAddedEvent

All Implemented Interfaces:
Event

@NonNullByDefault public class RuleAddedEvent extends AbstractRuleRegistryEvent
An RuleAddedEvent notifies subscribers that a rule has been added.
Author:
Benedikt Niehues - Initial contribution
  • Field Details

    • TYPE

      public static final String TYPE
  • Constructor Details

    • RuleAddedEvent

      public RuleAddedEvent(String topic, String payload, @Nullable String source, RuleDTO rule)
      constructs a new rule added event
      Parameters:
      topic - the topic of the event
      payload - the payload of the event
      source - the source of the event
      rule - the rule for which this event is created
  • Method Details

    • getType

      public String getType()
      Description copied from interface: Event
      Gets the event type.
      Returns:
      the event type
    • toString

      public String toString()
      Overrides:
      toString in class Object