Class CronExpression

java.lang.Object
dev.voidframework.scheduler.cron.CronExpression

public class CronExpression extends Object
A CRON expression.
Since:
1.0.0
  • Constructor Details

    • CronExpression

      public CronExpression(String cron)
      Build a new instance.
      Parameters:
      cron - The CRON expression to parse
      Since:
      1.0.0
  • Method Details

    • getNextDelayMilliseconds

      public long getNextDelayMilliseconds(ZoneId zoneId)
      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