org.drools.core.time.impl
Class CompositeMaxDurationTimer
java.lang.Object
org.drools.core.rule.ConditionalElement
org.drools.core.time.impl.BaseTimer
org.drools.core.time.impl.CompositeMaxDurationTimer
- All Implemented Interfaces:
- Externalizable, Serializable, Cloneable, RuleConditionElement, RuleComponent, Timer
public class CompositeMaxDurationTimer
- extends BaseTimer
- implements Timer
While a rule might have multiple DurationTimers, due to LHS CEP rules, there can only ever
be one timer attribute. Duration rules should be considered a priority over the one timer rule.
So the Timer cannot fire, until the maximum duration has passed.
- See Also:
- Serialized Form
|
Method Summary |
void |
addDurationTimer(DurationTimer durationTimer)
|
ConditionalElement |
clone()
Returns a clone from itself |
Trigger |
createTrigger(Activation item,
InternalWorkingMemory wm)
|
Trigger |
createTrigger(long timestamp,
LeftTuple leftTuple,
DefaultJobHandle jh,
String[] calendarNames,
org.kie.api.runtime.Calendars calendars,
Declaration[][] declrs,
InternalWorkingMemory wm)
|
Trigger |
createTrigger(long timestamp,
String[] calendarNames,
org.kie.api.runtime.Calendars calendars)
|
Declaration[][] |
getTimerDeclarations(Map<String,Declaration> outerDeclrs)
|
void |
readExternal(ObjectInput in)
|
void |
setTimer(Timer timer)
|
void |
writeExternal(ObjectOutput out)
|
CompositeMaxDurationTimer
public CompositeMaxDurationTimer()
getTimerDeclarations
public Declaration[][] getTimerDeclarations(Map<String,Declaration> outerDeclrs)
- Specified by:
getTimerDeclarations in class BaseTimer
addDurationTimer
public void addDurationTimer(DurationTimer durationTimer)
setTimer
public void setTimer(Timer timer)
createTrigger
public Trigger createTrigger(Activation item,
InternalWorkingMemory wm)
- Specified by:
createTrigger in interface Timer
createTrigger
public Trigger createTrigger(long timestamp,
LeftTuple leftTuple,
DefaultJobHandle jh,
String[] calendarNames,
org.kie.api.runtime.Calendars calendars,
Declaration[][] declrs,
InternalWorkingMemory wm)
- Specified by:
createTrigger in interface Timer
createTrigger
public Trigger createTrigger(long timestamp,
String[] calendarNames,
org.kie.api.runtime.Calendars calendars)
- Specified by:
createTrigger in interface Timer
clone
public ConditionalElement clone()
- Description copied from interface:
RuleConditionElement
- Returns a clone from itself
- Specified by:
clone in interface RuleConditionElement- Specified by:
clone in class ConditionalElement
- Returns:
writeExternal
public void writeExternal(ObjectOutput out)
throws IOException
- Specified by:
writeExternal in interface Externalizable
- Throws:
IOException
readExternal
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
- Specified by:
readExternal in interface Externalizable
- Throws:
IOException
ClassNotFoundException
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.