Class RuleAddedEvent

  • All Implemented Interfaces:

    public class RuleAddedEvent
    extends AbstractRuleRegistryEvent
    An RuleAddedEvent notifies subscribers that a rule has been added.
    Benedikt Niehues - Initial contribution
    • Field Detail

      • TYPE

        public static final String TYPE
    • Constructor Detail

      • RuleAddedEvent

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

      • getType

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