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:
- Externalizable, Serializable, Cloneable, RuleConditionElement, RuleComponent, Timer
public class IntervalTimer
- extends BaseTimer
- implements Timer, Externalizable
- See Also:
- Serialized Form
|
Method Summary |
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)
|
boolean |
equals(Object obj)
|
long |
getDelay()
|
Declaration[] |
getEndDeclarations()
|
long |
getPeriod()
|
Declaration[] |
getStartDeclarations()
|
Declaration[][] |
getTimerDeclarations(Map<String,Declaration> outerDeclrs)
|
int |
hashCode()
|
void |
readExternal(ObjectInput in)
|
void |
writeExternal(ObjectOutput out)
|
IntervalTimer
public IntervalTimer()
IntervalTimer
public IntervalTimer(MVELObjectExpression startTime,
MVELObjectExpression endTime,
int repeatLimit,
long delay,
long period)
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
getStartDeclarations
public Declaration[] getStartDeclarations()
getEndDeclarations
public Declaration[] getEndDeclarations()
getTimerDeclarations
public Declaration[][] getTimerDeclarations(Map<String,Declaration> outerDeclrs)
- Specified by:
getTimerDeclarations in class BaseTimer
getDelay
public long getDelay()
getPeriod
public long getPeriod()
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
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
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:
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.