Package org.drools.core.time.impl
Class IntervalTimer
java.lang.Object
org.drools.base.rule.ConditionalElement
org.drools.core.time.impl.BaseTimer
org.drools.core.time.impl.IntervalTimer
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,RuleComponent,RuleConditionElement,Timer
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionIntervalTimer(TimerExpression startTime, TimerExpression endTime, int repeatLimit, long delay, long period) -
Method Summary
Modifier and TypeMethodDescriptionclone()createTrigger(long timestamp, String[] calendarNames, Calendars calendars) createTrigger(long timestamp, BaseTuple leftTuple, JobHandle jh, String[] calendarNames, Calendars calendars, Declaration[][] declrs, ValueResolver valueResolver) booleanlonggetDelay()longDeclaration[][]getTimerDeclarations(Map<String, Declaration> outerDeclrs) inthashCode()voidvoidMethods inherited from class org.drools.core.time.impl.BaseTimer
getInnerDeclarations, getNestedElements, getOuterDeclarations, isPatternScopeDelimiter, resolveDeclaration, sortDeclarationsMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.drools.base.rule.RuleConditionElement
getInnerDeclarations, getNestedElements, getOuterDeclarations, isPatternScopeDelimiter, resolveDeclaration
-
Constructor Details
-
IntervalTimer
public IntervalTimer() -
IntervalTimer
public IntervalTimer(TimerExpression startTime, TimerExpression endTime, int repeatLimit, long delay, long period)
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
getTimerDeclarations
- Specified by:
getTimerDeclarationsin classBaseTimer
-
getDelay
public long getDelay() -
getPeriod
public long getPeriod() -
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
-
hashCode
public int hashCode() -
equals
-
clone
- Specified by:
clonein interfaceRuleConditionElement- Specified by:
clonein classConditionalElement
-