Package io.temporal.client.schedules
Class Schedule
- java.lang.Object
-
- io.temporal.client.schedules.Schedule
-
public final class Schedule extends java.lang.ObjectA schedule for periodically running an action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchedule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)ScheduleActiongetAction()Gets the action for the schedule.SchedulePolicygetPolicy()Gets the policy for the schedule.ScheduleSpecgetSpec()Gets the spec for the schedule.ScheduleStategetState()Gets the state of the schedule.inthashCode()static Schedule.BuildernewBuilder()static Schedule.BuildernewBuilder(Schedule options)java.lang.StringtoString()
-
-
-
Method Detail
-
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(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-