Class ScheduleSpec
java.lang.Object
io.temporal.client.schedules.ScheduleSpec
Specification of the times scheduled actions may occur. The times are the union of
calendars, intervals, and cronExpressions
excluding anything in skip.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the calendar-based specification of times.Gets the cron-based specification of times.getEndAt()Gets the time after which any matching times will be skipped.Gets the interval-based specification of times.Gets the jitter to apply to each action.getSkip()Gets the set of matching calendar times that will be skipped.Gets the time before which any matching times will be skipped.Gets the IANA time zone name, for exampleUS/Central .inthashCode()static ScheduleSpec.Builderstatic ScheduleSpec.BuildernewBuilder(ScheduleSpec options) toString()
-
Method Details
-
newBuilder
-
newBuilder
-
getCalendars
Gets the calendar-based specification of times.- Returns:
- list of
ScheduleCalendarSpecthe schedule may run at.
-
getIntervals
Gets the interval-based specification of times.- Returns:
- list of
ScheduleIntervalSpecthe schedule may run at.
-
getCronExpressions
Gets the cron-based specification of times.This is provided for easy migration from legacy string-based cron scheduling. New uses should use
calendarsinstead. These expressions will be translated to calendar-based specifications on the server.- Returns:
- list of cron expressions the schedule may run at.
-
getSkip
Gets the set of matching calendar times that will be skipped.- Returns:
- list of
ScheduleCalendarSpecthe schedule will not run at.
-
getStartAt
Gets the time before which any matching times will be skipped.- Returns:
- schedule start time
-
getEndAt
Gets the time after which any matching times will be skipped.- Returns:
- schedule end time
-
getJitter
Gets the jitter to apply to each action.- Returns:
- amount of jitter applied
-
getTimeZoneName
Gets the IANA time zone name, for exampleUS/Central .- Returns:
- string representing the timezone.
-
equals
-
hashCode
-
toString
-