org.jboss.seam.async
Class TimerSchedule

java.lang.Object
  extended by org.jboss.seam.async.Schedule
      extended by org.jboss.seam.async.TimerSchedule
All Implemented Interfaces:
Serializable

public class TimerSchedule
extends Schedule

A "schedule" for a timed event executed by the EJB timer service or some other timer service which supports delayed and/or periodic timed events.

Author:
Gavin King
See Also:
Serialized Form

Field Summary
static TimerSchedule ONCE_IMMEDIATELY
           
 
Constructor Summary
TimerSchedule(Date expiration)
           
TimerSchedule(Date expiration, Long intervalDuration)
           
TimerSchedule(Long duration)
           
TimerSchedule(Long duration, Date expiration, Long intervalDuration)
           
TimerSchedule(Long duration, Date expiration, Long intervalDuration, Date finalExpiration)
           
TimerSchedule(Long duration, Long intervalDuration)
           
 
Method Summary
 boolean equals(Object obj)
           
 Long getIntervalDuration()
           
 int hashCode()
           
 
Methods inherited from class org.jboss.seam.async.Schedule
getDuration, getExpiration, getFinalExpiration
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONCE_IMMEDIATELY

public static final TimerSchedule ONCE_IMMEDIATELY
Constructor Detail

TimerSchedule

public TimerSchedule(Long duration)
Parameters:
duration - the delay before the event occurs

TimerSchedule

public TimerSchedule(Date expiration)
Parameters:
expiration - the datetime at which the event occurs

TimerSchedule

public TimerSchedule(Long duration,
                     Long intervalDuration)
Parameters:
duration - the delay before the first event occurs
intervalDuration - the period between the events

TimerSchedule

public TimerSchedule(Date expiration,
                     Long intervalDuration)
Parameters:
expiration - the datetime at which the first event occurs
intervalDuration - the period between the events

TimerSchedule

public TimerSchedule(Long duration,
                     Date expiration,
                     Long intervalDuration)

TimerSchedule

public TimerSchedule(Long duration,
                     Date expiration,
                     Long intervalDuration,
                     Date finalExpiration)
Method Detail

getIntervalDuration

public Long getIntervalDuration()

hashCode

public int hashCode()
Overrides:
hashCode in class Schedule

equals

public boolean equals(Object obj)
Overrides:
equals in class Schedule