org.jboss.seam.async
Class Schedule

java.lang.Object
  extended by org.jboss.seam.async.Schedule
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
CronSchedule, TimerSchedule

public class Schedule
extends java.lang.Object
implements java.io.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

Constructor Summary
Schedule()
           
Schedule(java.util.Date expiration)
           
Schedule(java.lang.Long duration)
           
Schedule(java.lang.Long duration, java.util.Date expiration)
           
Schedule(java.lang.Long duration, java.util.Date expiration, java.util.Date finalExpiration)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.Long getDuration()
           
 java.util.Date getExpiration()
           
 java.util.Date getFinalExpiration()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schedule

public Schedule(java.lang.Long duration,
                java.util.Date expiration)
Parameters:
duration - the delay before the event occurs
expiration - the datetime at which the event occurs

Schedule

public Schedule(java.lang.Long duration,
                java.util.Date expiration,
                java.util.Date finalExpiration)
Parameters:
duration - the delay before the event occurs
expiration - the datetime at which the event occurs
finalExpiration - the datetime at which the event ends

Schedule

public Schedule(java.lang.Long duration)
Parameters:
duration - the delay before the event occurs

Schedule

public Schedule(java.util.Date expiration)
Parameters:
expiration - the datetime at which the event occurs

Schedule

public Schedule()
Method Detail

getDuration

public java.lang.Long getDuration()

getExpiration

public java.util.Date getExpiration()

getFinalExpiration

public java.util.Date getFinalExpiration()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2011 Seam Framework. All Rights Reserved.