Package io.temporal.client.schedules
Class SchedulePolicy.Builder
- java.lang.Object
-
- io.temporal.client.schedules.SchedulePolicy.Builder
-
- Enclosing class:
- SchedulePolicy
public static final class SchedulePolicy.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchedulePolicy
build()
SchedulePolicy.Builder
setCatchupWindow(java.time.Duration catchupWindow)
Set the amount of time in the past to execute missed actions after a Temporal server is unavailable.SchedulePolicy.Builder
setOverlap(io.temporal.api.enums.v1.ScheduleOverlapPolicy overlap)
Set the policy for what happens when an action is started while another is still running.SchedulePolicy.Builder
setPauseOnFailure(boolean pauseOnFailure)
Set whether to pause the schedule if an action fails or times out.
-
-
-
Method Detail
-
setOverlap
public SchedulePolicy.Builder setOverlap(io.temporal.api.enums.v1.ScheduleOverlapPolicy overlap)
Set the policy for what happens when an action is started while another is still running.
-
setCatchupWindow
public SchedulePolicy.Builder setCatchupWindow(java.time.Duration catchupWindow)
Set the amount of time in the past to execute missed actions after a Temporal server is unavailable.
-
setPauseOnFailure
public SchedulePolicy.Builder setPauseOnFailure(boolean pauseOnFailure)
Set whether to pause the schedule if an action fails or times out.
-
build
public SchedulePolicy build()
-
-