Class RuleUpdatedEvent

  • All Implemented Interfaces:
    Event

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

      • TYPE

        public static final String TYPE
    • Constructor Detail

      • RuleUpdatedEvent

        public RuleUpdatedEvent​(String topic,
                                String payload,
                                @Nullable String source,
                                RuleDTO rule,
                                RuleDTO oldRule)
        constructs a new rule updated 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 is this event
        oldRule - the rule that has been updated
    • Method Detail

      • getType

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

        public RuleDTO getOldRule()
        Returns:
        the oldRuleDTO