org.jboss.seam.async
Class TimerSchedule
java.lang.Object
org.jboss.seam.async.Schedule
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
ONCE_IMMEDIATELY
public static final TimerSchedule ONCE_IMMEDIATELY
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 occursintervalDuration
- the period between the events
TimerSchedule
public TimerSchedule(Date expiration,
Long intervalDuration)
- Parameters:
expiration
- the datetime at which the first event occursintervalDuration
- 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)
getIntervalDuration
public Long getIntervalDuration()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Schedule
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Schedule