org.jboss.seam.async
Class Schedule
java.lang.Object
org.jboss.seam.async.Schedule
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- CronSchedule, TimerSchedule
public class Schedule
- extends Object
- implements Serializable
A "schedule" for a timed event executed by
a timer service which supports delayed
timed events. It is the base class for the more
useful TimerSchedule, NthBusinessDay and CronSchedule classes.
- Author:
- Michael Yuan
- See Also:
- Serialized Form
Schedule
public Schedule(Long duration,
Date expiration)
- Parameters:
duration
- the delay before the event occursexpiration
- the datetime at which the event occurs
Schedule
public Schedule(Long duration,
Date expiration,
Date finalExpiration)
- Parameters:
duration
- the delay before the event occursexpiration
- the datetime at which the event occursfinalExpiration
- the datetime at which the event ends
Schedule
public Schedule(Long duration)
- Parameters:
duration
- the delay before the event occurs
Schedule
public Schedule(Date expiration)
- Parameters:
expiration
- the datetime at which the event occurs
Schedule
public Schedule()
getDuration
public Long getDuration()
getExpiration
public Date getExpiration()
getFinalExpiration
public Date getFinalExpiration()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object