Package dev.voidframework.scheduler.cron
Class CronExpression
java.lang.Object
dev.voidframework.scheduler.cron.CronExpression
A CRON expression.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetNextDelayMilliseconds(ZoneId zoneId) Retrieves the delay from now to the next match.
-
Constructor Details
-
CronExpression
Build a new instance.- Parameters:
cron- The CRON expression to parse- Since:
- 1.0.0
-
-
Method Details
-
getNextDelayMilliseconds
Retrieves the delay from now to the next match.- Parameters:
zoneId- The Zone to use for manipulating datetime- Returns:
- The next delay in milliseconds
- Since:
- 1.0.0
-