public class CronSchedule extends Object implements Schedule
| Constructor and Description |
|---|
CronSchedule(String cronExpression) |
CronSchedule(String cronExpression,
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(String cronExpression)
public CronSchedule(String cronExpression, 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)5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.