Drools :: Core 6.2.0.CR4

org.drools.core.time.impl
Class CompositeMaxDurationTrigger

java.lang.Object
  extended by org.drools.core.time.impl.CompositeMaxDurationTrigger
All Implemented Interfaces:
Externalizable, Serializable, Trigger

public class CompositeMaxDurationTrigger
extends Object
implements Trigger, Externalizable

See Also:
Serialized Form

Constructor Summary
CompositeMaxDurationTrigger()
           
CompositeMaxDurationTrigger(Date maxDurationTimestamp, Trigger timerTrigger, String[] calendarNames, org.kie.api.runtime.Calendars calendars)
           
 
Method Summary
 Date getMaxDurationTimestamp()
           
 Date getTimerCurrentDate()
           
 Trigger getTimerTrigger()
           
 Date hasNextFireTime()
          This method is used to query the trigger about the existence of a possible next fire time, but WITHOUT changing any internal state of the trigger.
 Date nextFireTime()
          This method returns the date of the next fire time and updates the internal state of the Trigger to the following fire time if one exists.
 void readExternal(ObjectInput in)
           
 void setMaxDurationTimestamp(Date maxDurationTimestamp)
           
 void setTimerCurrentDate(Date timerCurrentDate)
           
 void setTimerTrigger(Trigger timerTrigger)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeMaxDurationTrigger

public CompositeMaxDurationTrigger()

CompositeMaxDurationTrigger

public CompositeMaxDurationTrigger(Date maxDurationTimestamp,
                                   Trigger timerTrigger,
                                   String[] calendarNames,
                                   org.kie.api.runtime.Calendars calendars)
Method Detail

hasNextFireTime

public Date hasNextFireTime()
Description copied from interface: Trigger
This method is used to query the trigger about the existence of a possible next fire time, but WITHOUT changing any internal state of the trigger. In other words, this method MUST not have side effects. As an analogy, if a trigger was a stack, this method would be the equivalent of a "peek()" call.

Specified by:
hasNextFireTime in interface Trigger
Returns:
the Date of the next fire time or null if there is no next fire time.

nextFireTime

public Date nextFireTime()
Description copied from interface: Trigger
This method returns the date of the next fire time and updates the internal state of the Trigger to the following fire time if one exists. As an analogy, if a trigger was a stack, this method would be the equivalent of a "pop()" call.

Specified by:
nextFireTime in interface Trigger
Returns:
the Date of the next fire time or null if there is no next fire time.

getTimerCurrentDate

public Date getTimerCurrentDate()

setTimerCurrentDate

public void setTimerCurrentDate(Date timerCurrentDate)

getTimerTrigger

public Trigger getTimerTrigger()

setTimerTrigger

public void setTimerTrigger(Trigger timerTrigger)

getMaxDurationTimestamp

public Date getMaxDurationTimestamp()

setMaxDurationTimestamp

public void setMaxDurationTimestamp(Date maxDurationTimestamp)

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

Drools :: Core 6.2.0.CR4

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