Class CronExpression

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

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

    • CronExpression

      public CronExpression(String cron)
      Build a new instance.
      Parameters:
      cron - The CRON expression to parse
  • 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