Class SchedulePolicy


  • public final class SchedulePolicy
    extends java.lang.Object
    Policies of a schedule.
    • Method Detail

      • getOverlap

        public io.temporal.api.enums.v1.ScheduleOverlapPolicy getOverlap()
        Gets the policy for what happens when an action is started while another is still running.
        Returns:
        the schedules overlap policy
      • getCatchupWindow

        public java.time.Duration getCatchupWindow()
        Gets the amount of time in the past to execute missed actions after a Temporal server is unavailable.
        Returns:
        the schedules catchup window
      • isPauseOnFailure

        public boolean isPauseOnFailure()
        Gets a value indicating whether to pause the schedule if an action fails or times out.
        Returns:
        if the schedule should pause on failure
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object