Package org.drools.core.time.impl
Class IntervalTimer
- java.lang.Object
-
- org.drools.core.rule.ConditionalElement
-
- org.drools.core.time.impl.BaseTimer
-
- org.drools.core.time.impl.IntervalTimer
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable,java.lang.Cloneable,RuleComponent,RuleConditionElement,Timer
public class IntervalTimer extends BaseTimer implements Timer, java.io.Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description IntervalTimer()IntervalTimer(TimerExpression startTime, TimerExpression endTime, int repeatLimit, long delay, long period)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionalElementclone()Returns a clone from itselfTriggercreateTrigger(long timestamp, java.lang.String[] calendarNames, org.kie.api.runtime.Calendars calendars)TriggercreateTrigger(long timestamp, Tuple leftTuple, DefaultJobHandle jh, java.lang.String[] calendarNames, org.kie.api.runtime.Calendars calendars, Declaration[][] declrs, ReteEvaluator reteEvaluator)booleanequals(java.lang.Object obj)longgetDelay()longgetPeriod()Declaration[][]getTimerDeclarations(java.util.Map<java.lang.String,Declaration> outerDeclrs)inthashCode()voidreadExternal(java.io.ObjectInput in)voidwriteExternal(java.io.ObjectOutput out)-
Methods inherited from class org.drools.core.time.impl.BaseTimer
getInnerDeclarations, getNestedElements, getOuterDeclarations, isPatternScopeDelimiter, resolveDeclaration, sortDeclarations
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.drools.core.rule.RuleConditionElement
getInnerDeclarations, getNestedElements, getOuterDeclarations, isPatternScopeDelimiter, resolveDeclaration
-
-
-
-
Constructor Detail
-
IntervalTimer
public IntervalTimer()
-
IntervalTimer
public IntervalTimer(TimerExpression startTime, TimerExpression endTime, int repeatLimit, long delay, long period)
-
-
Method Detail
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
getTimerDeclarations
public Declaration[][] getTimerDeclarations(java.util.Map<java.lang.String,Declaration> outerDeclrs)
- Specified by:
getTimerDeclarationsin classBaseTimer
-
getDelay
public long getDelay()
-
getPeriod
public long getPeriod()
-
createTrigger
public Trigger createTrigger(long timestamp, Tuple leftTuple, DefaultJobHandle jh, java.lang.String[] calendarNames, org.kie.api.runtime.Calendars calendars, Declaration[][] declrs, ReteEvaluator reteEvaluator)
- Specified by:
createTriggerin interfaceTimer
-
createTrigger
public Trigger createTrigger(long timestamp, java.lang.String[] calendarNames, org.kie.api.runtime.Calendars calendars)
- Specified by:
createTriggerin interfaceTimer
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
clone
public ConditionalElement clone()
Description copied from interface:RuleConditionElementReturns a clone from itself- Specified by:
clonein interfaceRuleConditionElement- Specified by:
clonein classConditionalElement- Returns:
-
-