public class CronSchedule extends java.lang.Object implements Schedule
| Constructor and Description |
|---|
CronSchedule(java.lang.String cronExpression) |
CronSchedule(java.lang.String cronExpression,
java.util.TimeZone timeZone) |
| Modifier and Type | Method and Description |
|---|---|
long |
firstExecution()
For a newly created job, what is the start time for the job.
|
long |
nextExecution(long previousExecution)
Computes the next execution time for a job.
|
public CronSchedule(java.lang.String cronExpression)
public CronSchedule(java.lang.String cronExpression, java.util.TimeZone timeZone)
public long firstExecution()
SchedulefirstExecution in interface Schedulepublic long nextExecution(long previousExecution)
SchedulenextExecution in interface SchedulepreviousExecution - time of previous execution (in system clock millis)${project.version} - Copyright © 2003-2015 The Apache Software Foundation.