Package org.drools.core.time.impl
Class CompositeMaxDurationTimer
java.lang.Object
org.drools.base.rule.ConditionalElement
org.drools.core.time.impl.BaseTimer
org.drools.core.time.impl.CompositeMaxDurationTimer
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,RuleComponent,RuleConditionElement,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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDurationTimer(DurationTimer durationTimer) clone()createTrigger(long timestamp, String[] calendarNames, Calendars calendars) createTrigger(long timestamp, BaseTuple leftTuple, JobHandle jh, String[] calendarNames, Calendars calendars, Declaration[][] declrs, ValueResolver valueResolver) createTrigger(InternalMatch item, InternalWorkingMemory wm) Declaration[][]getTimerDeclarations(Map<String, Declaration> outerDeclrs) voidvoidvoidMethods inherited from class org.drools.core.time.impl.BaseTimer
getInnerDeclarations, getNestedElements, getOuterDeclarations, isPatternScopeDelimiter, resolveDeclaration, sortDeclarationsMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.drools.base.rule.RuleConditionElement
getInnerDeclarations, getNestedElements, getOuterDeclarations, isPatternScopeDelimiter, resolveDeclaration
-
Constructor Details
-
CompositeMaxDurationTimer
public CompositeMaxDurationTimer()
-
-
Method Details
-
getTimerDeclarations
- Specified by:
getTimerDeclarationsin classBaseTimer
-
addDurationTimer
-
setTimer
-
createTrigger
-
createTrigger
public Trigger createTrigger(long timestamp, BaseTuple leftTuple, JobHandle jh, String[] calendarNames, Calendars calendars, Declaration[][] declrs, ValueResolver valueResolver) - Specified by:
createTriggerin interfaceTimer
-
createTrigger
- Specified by:
createTriggerin interfaceTimer
-
clone
- Specified by:
clonein interfaceRuleConditionElement- Specified by:
clonein classConditionalElement
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-