Class CompositeMaxDurationTimer

  • All Implemented Interfaces:
    java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, RuleComponent, RuleConditionElement, Timer

    public class CompositeMaxDurationTimer
    extends BaseTimer
    implements Timer
    While a rule might have multiple DurationTimers, due to LHS CEP rules, there can only ever be one timer attribute. Duration rules should be considered a priority over the one timer rule. So the Timer cannot fire, until the maximum duration has passed.
    See Also:
    Serialized Form
    • Constructor Detail

      • CompositeMaxDurationTimer

        public CompositeMaxDurationTimer()
    • Method Detail

      • addDurationTimer

        public void addDurationTimer​(DurationTimer durationTimer)
      • setTimer

        public void setTimer​(Timer timer)
      • createTrigger

        public Trigger createTrigger​(long timestamp,
                                     java.lang.String[] calendarNames,
                                     org.kie.api.runtime.Calendars calendars)
        Specified by:
        createTrigger in interface Timer
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException