Class CronSchedule
- java.lang.Object
 - 
- org.apache.tapestry5.ioc.services.cron.CronSchedule
 
 
- 
- All Implemented Interfaces:
 Schedule
public class CronSchedule extends Object implements Schedule
 
- 
- 
Constructor Summary
Constructors Constructor Description CronSchedule(String cronExpression)CronSchedule(String cronExpression, TimeZone timeZone) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longfirstExecution()For a newly created job, what is the start time for the job.longnextExecution(long previousExecution)Computes the next execution time for a job. 
 - 
 
- 
- 
Constructor Detail
- 
CronSchedule
public CronSchedule(String cronExpression)
 
- 
CronSchedule
public CronSchedule(String cronExpression, TimeZone timeZone)
 
 - 
 
- 
Method Detail
- 
firstExecution
public long firstExecution()
Description copied from interface:ScheduleFor a newly created job, what is the start time for the job. Often, the current clock time is returned, to start a job as soon as possible.- Specified by:
 firstExecutionin interfaceSchedule- Returns:
 - start time for new job, in system clock millis
 
 
- 
nextExecution
public long nextExecution(long previousExecution)
Description copied from interface:ScheduleComputes the next execution time for a job.- Specified by:
 nextExecutionin interfaceSchedule- Parameters:
 previousExecution- time of previous execution (in system clock millis)- Returns:
 - time of next execution (in system clock millis) or a value <= 0 to cancel the job's execution
 
 
 - 
 
 -