Package org.drools.core.time.impl
Class CronTimer
- java.lang.Object
-
- org.drools.core.rule.ConditionalElement
-
- org.drools.core.time.impl.BaseTimer
-
- org.drools.core.time.impl.CronTimer
-
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,RuleConditionElement,RuleComponent,Timer
public class CronTimer extends BaseTimer implements Timer, Externalizable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CronTimer()CronTimer(TimerExpression startTime, TimerExpression endTime, int repeatLimit, CronExpression cronExpression)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConditionalElementclone()Returns a clone from itselfTriggercreateTrigger(long timestamp, String[] calendarNames, org.kie.api.runtime.Calendars calendars)TriggercreateTrigger(long timestamp, Tuple leftTuple, DefaultJobHandle jh, String[] calendarNames, org.kie.api.runtime.Calendars calendars, Declaration[][] declrs, InternalWorkingMemory wm)booleanequals(Object obj)CronExpressiongetCronExpression()Declaration[][]getTimerDeclarations(Map<String,Declaration> outerDeclrs)inthashCode()voidreadExternal(ObjectInput in)voidwriteExternal(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
-
CronTimer
public CronTimer()
-
CronTimer
public CronTimer(TimerExpression startTime, TimerExpression endTime, int repeatLimit, CronExpression cronExpression)
-
-
Method Detail
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
getTimerDeclarations
public Declaration[][] getTimerDeclarations(Map<String,Declaration> outerDeclrs)
- Specified by:
getTimerDeclarationsin classBaseTimer
-
getCronExpression
public CronExpression getCronExpression()
-
createTrigger
public Trigger createTrigger(long timestamp, Tuple leftTuple, DefaultJobHandle jh, String[] calendarNames, org.kie.api.runtime.Calendars calendars, Declaration[][] declrs, InternalWorkingMemory wm)
- Specified by:
createTriggerin interfaceTimer
-
createTrigger
public Trigger createTrigger(long timestamp, String[] calendarNames, org.kie.api.runtime.Calendars calendars)
- Specified by:
createTriggerin interfaceTimer
-
clone
public ConditionalElement clone()
Description copied from interface:RuleConditionElementReturns a clone from itself- Specified by:
clonein interfaceRuleConditionElement- Specified by:
clonein classConditionalElement- Returns:
-
-