Class ScheduleCalendarSpec

java.lang.Object
io.temporal.client.schedules.ScheduleCalendarSpec

public final class ScheduleCalendarSpec extends Object
Specification of when to run an action in relation to calendar time.

A timestamp matches if at least one range of each field matches except for year. If year is missing, that means all years match. For all fields besides year, at least one range must be present to match anything.

  • Field Details

    • BEGINNING

      public static final List<ScheduleRange> BEGINNING
      Default range set for zero.
    • ALL_MONTH_DAYS

      public static final List<ScheduleRange> ALL_MONTH_DAYS
      Default range set for all days in a month.
    • ALL_MONTHS

      public static final List<ScheduleRange> ALL_MONTHS
      Default range set for all months in a year.
    • ALL_WEEK_DAYS

      public static final List<ScheduleRange> ALL_WEEK_DAYS
      Default range set for all days in a week.
  • Method Details

    • newBuilder

      public static ScheduleCalendarSpec.Builder newBuilder()
    • newBuilder

      public static ScheduleCalendarSpec.Builder newBuilder(ScheduleCalendarSpec spec)
    • getSeconds

      public List<ScheduleRange> getSeconds()
      Gets the second range to match.
      Returns:
      second ranges
    • getMinutes

      public List<ScheduleRange> getMinutes()
      Gets the minute range to match.
      Returns:
      minute ranges
    • getHour

      public List<ScheduleRange> getHour()
      Gets the hour range to match.
      Returns:
      hour ranges
    • getDayOfMonth

      public List<ScheduleRange> getDayOfMonth()
      Gets the day of month range to match.
      Returns:
      hour ranges
    • getMonth

      public List<ScheduleRange> getMonth()
      Gets the month range to match.
      Returns:
      month ranges
    • getYear

      public List<ScheduleRange> getYear()
      Gets the year range to match.
      Returns:
      year ranges
    • getDayOfWeek

      public List<ScheduleRange> getDayOfWeek()
      Gets the day of the week range to match.
      Returns:
      day of the week range
    • getComment

      public String getComment()
      Gets the description of this specification.
      Returns:
      specification description
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object