Package io.temporal.client.schedules
Class ScheduleState
- java.lang.Object
-
- io.temporal.client.schedules.ScheduleState
-
public final class ScheduleState extends java.lang.ObjectState of a schedule.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScheduleState.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetNote()Gets the human-readable message for the schedule.longgetRemainingActions()Gets the actions remaining on this schedule.inthashCode()booleanisLimitedAction()Gets a value indicating whether, if true, remaining actions will be decremented for each action taken.booleanisPaused()Gets a value indicating whether this schedule is paused.static ScheduleState.BuildernewBuilder()static ScheduleState.BuildernewBuilder(ScheduleState options)java.lang.StringtoString()
-
-
-
Method Detail
-
newBuilder
public static ScheduleState.Builder newBuilder()
-
newBuilder
public static ScheduleState.Builder newBuilder(ScheduleState options)
-
getNote
public java.lang.String getNote()
Gets the human-readable message for the schedule.- Returns:
- the schedules note
-
isPaused
public boolean isPaused()
Gets a value indicating whether this schedule is paused.- Returns:
- if the schedule is paused
-
isLimitedAction
public boolean isLimitedAction()
Gets a value indicating whether, if true, remaining actions will be decremented for each action taken.- Returns:
- if the schedule has limited actions
-
getRemainingActions
public long getRemainingActions()
Gets the actions remaining on this schedule. Once this number hits 0, no further actions are scheduled automatically.- Returns:
- the number of remaining actions
-
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
-
-