Class ScheduleCalendarSpec
java.lang.Object
io.temporal.client.schedules.ScheduleCalendarSpec
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.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<ScheduleRange> Default range set for all days in a month.static final List<ScheduleRange> Default range set for all months in a year.static final List<ScheduleRange> Default range set for all days in a week.static final List<ScheduleRange> Default range set for zero. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the description of this specification.Gets the day of month range to match.Gets the day of the week range to match.getHour()Gets the hour range to match.Gets the minute range to match.getMonth()Gets the month range to match.Gets the second range to match.getYear()Gets the year range to match.inthashCode()static ScheduleCalendarSpec.Builderstatic ScheduleCalendarSpec.BuildertoString()
-
Field Details
-
BEGINNING
Default range set for zero. -
ALL_MONTH_DAYS
Default range set for all days in a month. -
ALL_MONTHS
Default range set for all months in a year. -
ALL_WEEK_DAYS
Default range set for all days in a week.
-
-
Method Details
-
newBuilder
-
newBuilder
-
getSeconds
-
getMinutes
-
getHour
-
getDayOfMonth
Gets the day of month range to match.- Returns:
- hour ranges
-
getMonth
-
getYear
-
getDayOfWeek
Gets the day of the week range to match.- Returns:
- day of the week range
-
getComment
Gets the description of this specification.- Returns:
- specification description
-
equals
-
hashCode
-
toString
-