CronExpressionScheduleTest instead.
This class has been deprecated to move away from cron-utils. See
issue #14 for details.@Deprecated public class CronSchedule extends Object implements Schedule
Schedule based on a
cron expression.CronSchedule.
Since cron-utils is marked as optional, it has to be explicitly referenced in the
project dependency configuration (pom.xml, build.gradle, build.sbt etc.).WILL_NOT_BE_EXECUTED_AGAIN, willNeverBeExecuted| Constructor and Description |
|---|
CronSchedule(com.cronutils.model.Cron cronExpression)
Deprecated.
|
CronSchedule(com.cronutils.model.Cron cronExpression,
ZoneId zoneId)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
long |
nextExecutionInMillis(long currentTimeInMillis,
int executionsCount,
Long lastExecutionTimeInMillis)
Deprecated.
Compute the next execution time for a job.
|
static CronSchedule |
parseQuartzCron(String cronExpression)
Deprecated.
Use
CronExpressionScheduleTest#parse(String)
or CronExpressionScheduleTest#parseWithSeconds(String) instead |
static CronSchedule |
parseUnixCron(String cronExpression)
Deprecated.
Use
CronExpressionScheduleTest#parse(String) instead |
String |
toString()
Deprecated.
|
public CronSchedule(com.cronutils.model.Cron cronExpression,
ZoneId zoneId)
public CronSchedule(com.cronutils.model.Cron cronExpression)
public long nextExecutionInMillis(long currentTimeInMillis,
int executionsCount,
Long lastExecutionTimeInMillis)
SchedulenextExecutionInMillis in interface SchedulecurrentTimeInMillis - The current time in milliseconds. This time must be used if
a next execution is planned for the jobexecutionsCount - The number of times a job has already been executedlastExecutionTimeInMillis - The time at which the job has last been executed; will be null
if the job has never been executedcurrentTimeInMillis.
If the returned value is negative, the job will not be executed again.@Deprecated public static CronSchedule parseUnixCron(String cronExpression)
CronExpressionScheduleTest#parse(String) insteadSchedule from a cron expression based on the Unix format,
e.g. 1 * * * * for each minute.@Deprecated public static CronSchedule parseQuartzCron(String cronExpression)
CronExpressionScheduleTest#parse(String)
or CronExpressionScheduleTest#parseWithSeconds(String) insteadSchedule from a cron expression based on the Quartz format,
e.g. 0 * * * * ? * for each minute.Copyright © 2023 Coreoz. All rights reserved.