org.jboss.seam.async
Class CronSchedule

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

public class CronSchedule
extends Schedule

A "cron schedule" for a timed event executed by the Quartz CronTrigger.

Author:
Michael Yuan
See Also:
Serialized Form

Constructor Summary
CronSchedule(Date expiration, String cron)
           
CronSchedule(Long duration, String cron)
           
 
Method Summary
 
Methods inherited from class org.jboss.seam.async.Schedule
equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CronSchedule

public CronSchedule(Long duration,
                    String cron)
Parameters:
duration - the delay before the first event occurs
cron - the unix cron string to control how the events are repeated

CronSchedule

public CronSchedule(Date expiration,
                    String cron)
Parameters:
expiration - the datetime at which the first event occurs
cron - the unix cron string to control how the events are repeated