Class CronEvent

  • All Implemented Interfaces:
    Serializable

    public class CronEvent
    extends ScheduleEvent
    Event requesting a recurrent scheduling to a Scheduler. The recurring occurrence time is described in a cron like syntax, that is : <minutes> <hours> <days of month> <months> <days of week> <minutes> = [ 0-59 | * ] <hours> = [ 0-23 | * ] <days of month> = [ 1-31 | * ] <months> = [ 0-11 | * ] <days of week> = [ 0-6 | * ]
    See Also:
    Scheduler, ScheduleEvent, Serialized Form
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        define serialVersionUID for interoperability
        See Also:
        Constant Field Values
      • CRON_MAX

        private static final int CRON_MAX
        max value (+1) for CRON_* constants
        See Also:
        Constant Field Values
      • values

        private static final String[] values
        string image for CRON_* constants, by index in the table
      • min

        private static final int[] min
        minimum for values designed by CRON_* constants
      • max

        private static final int[] max
        maximum for values designed by CRON_* constants
      • ranges

        private BitSet[] ranges
        cron dates for this event
    • Method Detail

      • nextDate

        protected Date nextDate​(Date now)
        Returns the next scheduling date after current date given as parameter. The new date must be strictly greater than the current date. A null date leads to the scheduler deleting the event.
        Overrides:
        nextDate in class ScheduleEvent
        Parameters:
        now - current date
        Returns:
        next scheduling date after now