Package io.temporal.client.schedules
Class ScheduleCalendarSpec
- java.lang.Object
-
- io.temporal.client.schedules.ScheduleCalendarSpec
-
public final class ScheduleCalendarSpec extends java.lang.ObjectSpecification 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScheduleCalendarSpec.Builder
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<ScheduleRange>ALL_MONTH_DAYSDefault range set for all days in a month.static java.util.List<ScheduleRange>ALL_MONTHSDefault range set for all months in a year.static java.util.List<ScheduleRange>ALL_WEEK_DAYSDefault range set for all days in a week.static java.util.List<ScheduleRange>BEGINNINGDefault range set for zero.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetComment()Gets the description of this specification.java.util.List<ScheduleRange>getDayOfMonth()Gets the day of month range to match.java.util.List<ScheduleRange>getDayOfWeek()Gets the day of the week range to match.java.util.List<ScheduleRange>getHour()Gets the hour range to match.java.util.List<ScheduleRange>getMinutes()Gets the minute range to match.java.util.List<ScheduleRange>getMonth()Gets the month range to match.java.util.List<ScheduleRange>getSeconds()Gets the second range to match.java.util.List<ScheduleRange>getYear()Gets the year range to match.inthashCode()static ScheduleCalendarSpec.BuildernewBuilder()static ScheduleCalendarSpec.BuildernewBuilder(ScheduleCalendarSpec spec)java.lang.StringtoString()
-
-
-
Field Detail
-
BEGINNING
public static final java.util.List<ScheduleRange> BEGINNING
Default range set for zero.
-
ALL_MONTH_DAYS
public static final java.util.List<ScheduleRange> ALL_MONTH_DAYS
Default range set for all days in a month.
-
ALL_MONTHS
public static final java.util.List<ScheduleRange> ALL_MONTHS
Default range set for all months in a year.
-
ALL_WEEK_DAYS
public static final java.util.List<ScheduleRange> ALL_WEEK_DAYS
Default range set for all days in a week.
-
-
Method Detail
-
newBuilder
public static ScheduleCalendarSpec.Builder newBuilder()
-
newBuilder
public static ScheduleCalendarSpec.Builder newBuilder(ScheduleCalendarSpec spec)
-
getSeconds
public java.util.List<ScheduleRange> getSeconds()
Gets the second range to match.- Returns:
- second ranges
-
getMinutes
public java.util.List<ScheduleRange> getMinutes()
Gets the minute range to match.- Returns:
- minute ranges
-
getHour
public java.util.List<ScheduleRange> getHour()
Gets the hour range to match.- Returns:
- hour ranges
-
getDayOfMonth
public java.util.List<ScheduleRange> getDayOfMonth()
Gets the day of month range to match.- Returns:
- hour ranges
-
getMonth
public java.util.List<ScheduleRange> getMonth()
Gets the month range to match.- Returns:
- month ranges
-
getYear
public java.util.List<ScheduleRange> getYear()
Gets the year range to match.- Returns:
- year ranges
-
getDayOfWeek
public java.util.List<ScheduleRange> getDayOfWeek()
Gets the day of the week range to match.- Returns:
- day of the week range
-
getComment
public java.lang.String getComment()
Gets the description of this specification.- Returns:
- specification description
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-