Interface ComplexScheduleElement


public interface ComplexScheduleElement
A complex schedule element, composed of optional parts for month, day of month, day of week hour of day and minute of hour. This class has no mutator methods as all the accessors point to live lists.

Examples:

HourOfDay [0, 12]Run daily at midnight and 12 p.m.
WeekDay[2], HourOfDay [0, 12]Run every Monday at midnight and 12 p.m.
MonthDay[1], HourOfDay [0, 12]Run every Monday at midnight and 12 p.m.
Month[1, 3], MonthDay[1], HourOfDay [15]Run at 3 p.m. on the 1st of January and the 1st of March
  • Method Summary

    Modifier and Type Method Description
    java.util.List<java.lang.Integer> getHourOfDay()
    Hours of the day on which to execute the schedule - 0 is midnight, 23 is 11 P.M.
    java.util.List<java.lang.Integer> getMinuteOfHour()
    Minutes of the hour on which to execute the schedule, from 0 to 59
    java.util.List<java.lang.Integer> getMonth()
    Months in which to execute the schedule - 1 for January, 12 for December
    java.util.List<java.lang.Integer> getMonthDay()
    Days of the month on which to execute the schedule, from 1 to 31.
    java.lang.String getTimezone()
    When present, indicates that the Timezone with this id should be used when applying the schedule as opposed to the server's timezone.
    java.util.List<java.lang.Integer> getWeekDay()
    Days of the week on which to execute the schedule - 1 is Sunday, 7 is Saturday
    void setTimezone​(java.lang.String tz)  
  • Method Details

    • getMonth

      java.util.List<java.lang.Integer> getMonth()
      Months in which to execute the schedule - 1 for January, 12 for December
    • getMonthDay

      java.util.List<java.lang.Integer> getMonthDay()
      Days of the month on which to execute the schedule, from 1 to 31.
    • getWeekDay

      java.util.List<java.lang.Integer> getWeekDay()
      Days of the week on which to execute the schedule - 1 is Sunday, 7 is Saturday
    • getHourOfDay

      java.util.List<java.lang.Integer> getHourOfDay()
      Hours of the day on which to execute the schedule - 0 is midnight, 23 is 11 P.M.
    • getMinuteOfHour

      java.util.List<java.lang.Integer> getMinuteOfHour()
      Minutes of the hour on which to execute the schedule, from 0 to 59
    • getTimezone

      java.lang.String getTimezone()
      When present, indicates that the Timezone with this id should be used when applying the schedule as opposed to the server's timezone. For example: schedule says "HourOfDay" 10 with TimeZone "America/Chicago". The server is in Eastern time. This schedule will run at 11:00 server (Eastern) time, since that's 10:00 America/Chicago time.
    • setTimezone

      void setTimezone​(java.lang.String tz)