Package org.drools.core.time.impl
Class ExpressionIntervalTimer
- java.lang.Object
-
- org.drools.core.rule.ConditionalElement
-
- org.drools.core.time.impl.BaseTimer
-
- org.drools.core.time.impl.ExpressionIntervalTimer
-
- All Implemented Interfaces:
Externalizable
,Serializable
,Cloneable
,RuleConditionElement
,RuleComponent
,Timer
public class ExpressionIntervalTimer extends BaseTimer implements Timer, Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ExpressionIntervalTimer()
ExpressionIntervalTimer(TimerExpression startTime, TimerExpression endTime, int repeatLimit, TimerExpression delay, TimerExpression period)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionalElement
clone()
Returns a clone from itselfTrigger
createTrigger(long timestamp, String[] calendarNames, org.kie.api.runtime.Calendars calendars)
Trigger
createTrigger(long timestamp, Tuple leftTuple, DefaultJobHandle jh, String[] calendarNames, org.kie.api.runtime.Calendars calendars, Declaration[][] declrs, InternalWorkingMemory wm)
boolean
equals(Object obj)
Declaration[]
getDelayDeclarations()
Declaration[]
getEndDeclarations()
Declaration[]
getPeriodDeclarations()
Declaration[]
getStartDeclarations()
Declaration[][]
getTimerDeclarations(Map<String,Declaration> outerDeclrs)
int
hashCode()
void
readExternal(ObjectInput in)
void
writeExternal(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
-
ExpressionIntervalTimer
public ExpressionIntervalTimer()
-
ExpressionIntervalTimer
public ExpressionIntervalTimer(TimerExpression startTime, TimerExpression endTime, int repeatLimit, TimerExpression delay, TimerExpression period)
-
-
Method Detail
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
getStartDeclarations
public Declaration[] getStartDeclarations()
-
getEndDeclarations
public Declaration[] getEndDeclarations()
-
getDelayDeclarations
public Declaration[] getDelayDeclarations()
-
getPeriodDeclarations
public Declaration[] getPeriodDeclarations()
-
getTimerDeclarations
public Declaration[][] getTimerDeclarations(Map<String,Declaration> outerDeclrs)
- Specified by:
getTimerDeclarations
in classBaseTimer
-
createTrigger
public Trigger createTrigger(long timestamp, Tuple leftTuple, DefaultJobHandle jh, String[] calendarNames, org.kie.api.runtime.Calendars calendars, Declaration[][] declrs, InternalWorkingMemory wm)
- Specified by:
createTrigger
in interfaceTimer
-
createTrigger
public Trigger createTrigger(long timestamp, String[] calendarNames, org.kie.api.runtime.Calendars calendars)
- Specified by:
createTrigger
in interfaceTimer
-
clone
public ConditionalElement clone()
Description copied from interface:RuleConditionElement
Returns a clone from itself- Specified by:
clone
in interfaceRuleConditionElement
- Specified by:
clone
in classConditionalElement
- Returns:
-
-