Class Schedule

java.lang.Object
io.temporal.client.schedules.Schedule

public final class Schedule extends Object
A schedule for periodically running an action.
  • Method Details

    • newBuilder

      public static Schedule.Builder newBuilder()
    • newBuilder

      public static Schedule.Builder newBuilder(Schedule options)
    • getAction

      @Nonnull public ScheduleAction getAction()
      Gets the action for the schedule.
      Returns:
      action of the schedule
    • getSpec

      @Nonnull public ScheduleSpec getSpec()
      Gets the spec for the schedule.
      Returns:
      spec of the schedule
    • getPolicy

      @Nullable public SchedulePolicy getPolicy()
      Gets the policy for the schedule.
      Returns:
      policy of the schedule
    • getState

      @Nullable public ScheduleState getState()
      Gets the state of the schedule.
      Returns:
      state of the schedule
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object