Package org.drools.core.time.impl
Class DurationTimer
java.lang.Object
org.drools.base.rule.ConditionalElement
org.drools.core.time.impl.BaseTimer
org.drools.core.time.impl.DurationTimer
- All Implemented Interfaces:
Externalizable,Serializable,Cloneable,RuleComponent,RuleConditionElement,Timer
- See Also:
-
Constructor Summary
Constructors -
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) createTrigger(InternalMatch item, InternalWorkingMemory wm) booleanlongDeclaration[][]getTimerDeclarations(Map<String, Declaration> outerDeclrs) inthashCode()voidvoidsetEventFactHandle(Declaration eventFactHandle) toString()voidMethods 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, wait, wait, waitMethods inherited from interface org.drools.base.rule.RuleConditionElement
getInnerDeclarations, getNestedElements, getOuterDeclarations, isPatternScopeDelimiter, resolveDeclaration
-
Constructor Details
-
DurationTimer
public DurationTimer() -
DurationTimer
public DurationTimer(long duration)
-
-
Method Details
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
getDuration
public long getDuration() -
getTimerDeclarations
- Specified by:
getTimerDeclarationsin classBaseTimer
-
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
-
hashCode
public int hashCode() -
equals
-
clone
- Specified by:
clonein interfaceRuleConditionElement- Specified by:
clonein classConditionalElement
-
toString
-
setEventFactHandle
-
getEventFactHandleDeclaration
-