org.drools.time.impl
Class CompositeMaxDurationTimer

java.lang.Object
  extended by org.drools.time.impl.CompositeMaxDurationTimer
All Implemented Interfaces:
Serializable, Timer

public class CompositeMaxDurationTimer
extends Object
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

Constructor Summary
CompositeMaxDurationTimer()
           
 
Method Summary
 void addDurationTimer(DurationTimer durationTimer)
           
 Trigger createTrigger(long timestamp, String[] calendarNames, org.drools.runtime.Calendars calendars)
           
 void setTimer(Timer timer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeMaxDurationTimer

public CompositeMaxDurationTimer()
Method Detail

addDurationTimer

public void addDurationTimer(DurationTimer durationTimer)

setTimer

public void setTimer(Timer timer)

createTrigger

public Trigger createTrigger(long timestamp,
                             String[] calendarNames,
                             org.drools.runtime.Calendars calendars)
Specified by:
createTrigger in interface Timer


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.