Class ScheduleSpec.Builder
java.lang.Object
io.temporal.client.schedules.ScheduleSpec.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()setCalendars(List<ScheduleCalendarSpec> calendars) Set the calendar-based specification of times a schedule should run.setCronExpressions(List<String> cronExpressions) Set the cron-based specification of times a schedule should run.Set the end time of the schedule, after which any matching times will be skipped.setIntervals(List<ScheduleIntervalSpec> intervals) Set the interval-based specification of times a schedule should run.Set the jitter to apply to each action.setSkip(List<ScheduleCalendarSpec> skip) Set the calendar-based specification of times a schedule should not run.setStartAt(Instant startAt) Set the start time of the schedule, before which any matching times will be skipped.setTimeZoneName(String timeZoneName) Set the schedules time zone as a string, for exampleUS/Central .
-
Method Details
-
setCalendars
Set the calendar-based specification of times a schedule should run. -
setIntervals
Set the interval-based specification of times a schedule should run. -
setCronExpressions
Set the cron-based specification of times a schedule should run.This is provided for easy migration from legacy string-based cron scheduling. New uses should use
ScheduleSpec.calendarsinstead. These expressions will be translated to calendar-based specifications on the server. -
setSkip
Set the calendar-based specification of times a schedule should not run. -
setStartAt
Set the start time of the schedule, before which any matching times will be skipped. -
setEndAt
Set the end time of the schedule, after which any matching times will be skipped. -
setJitter
Set the jitter to apply to each action.An action's schedule time will be incremented by a random value between 0 and this value if present (but not past the next schedule).
-
setTimeZoneName
Set the schedules time zone as a string, for exampleUS/Central . -
build
-