public class CronExpressionValidator extends Object
Modifier and Type | Method and Description |
---|---|
static List<Date> |
getFutureSchedules(String cronExpressionValue,
int limit)
Finds the next execution occurences of a cron expression from now.
|
static List<Date> |
getFutureSchedules(String cronExpressionValue,
int limit,
Date fromDate)
Finds the next execution occurences of a cron expression from now.
|
static boolean |
isValid(String cronExpressionValue)
Determines if the cron expression is valid according to Caesium.
|
public static List<Date> getFutureSchedules(String cronExpressionValue, int limit) throws com.atlassian.scheduler.cron.CronSyntaxException
cronExpressionValue
- the expression to evaluationlimit
- the maximum number of dates to returncom.atlassian.scheduler.cron.CronSyntaxException
- if the cron expression is invalidpublic static List<Date> getFutureSchedules(String cronExpressionValue, int limit, Date fromDate) throws com.atlassian.scheduler.cron.CronSyntaxException
cronExpressionValue
- the expression to evaluationlimit
- the maximum number of dates to returnfromDate
- the date to start from, or now if nullcom.atlassian.scheduler.cron.CronSyntaxException
- if the cron expression is invalidpublic static boolean isValid(String cronExpressionValue)
cronExpressionValue
- the expression to validateCopyright © 2003–2017 Atlassian. All rights reserved.