Package io.temporal.client.schedules
Class Schedule
- java.lang.Object
-
- io.temporal.client.schedules.Schedule
-
public final class Schedule extends java.lang.Object
A schedule for periodically running an action.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Schedule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
ScheduleAction
getAction()
Gets the action for the schedule.SchedulePolicy
getPolicy()
Gets the policy for the schedule.ScheduleSpec
getSpec()
Gets the spec for the schedule.ScheduleState
getState()
Gets the state of the schedule.int
hashCode()
static Schedule.Builder
newBuilder()
static Schedule.Builder
newBuilder(Schedule options)
java.lang.String
toString()
-
-
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-