Package io.temporal.client.schedules
Class ScheduleInfo
- java.lang.Object
-
- io.temporal.client.schedules.ScheduleInfo
-
public final class ScheduleInfo extends java.lang.Object
Information about a schedule.
-
-
Constructor Summary
Constructors Constructor Description ScheduleInfo(long numActions, long numActionsMissedCatchupWindow, long numActionsSkippedOverlap, java.util.List<ScheduleActionExecution> runningActions, java.util.List<ScheduleActionResult> recentActions, java.util.List<java.time.Instant> nextActionTimes, java.time.Instant createdAt, java.time.Instant lastUpdatedAt)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.time.Instant
getCreatedAt()
Get the time the schedule was created at.java.time.Instant
getLastUpdatedAt()
Get the last time the schedule was updated.java.util.List<java.time.Instant>
getNextActionTimes()
Get a list of the next scheduled action times.long
getNumActions()
Get the number of actions taken by the schedule.long
getNumActionsMissedCatchupWindow()
Get the number of actions skipped due to missing the catchup window.long
getNumActionsSkippedOverlap()
Get the number of actions skipped due to overlap.java.util.List<ScheduleActionResult>
getRecentActions()
Get a list of the most recent actions, oldest first.java.util.List<ScheduleActionExecution>
getRunningActions()
Get a list of currently running actions.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ScheduleInfo
public ScheduleInfo(long numActions, long numActionsMissedCatchupWindow, long numActionsSkippedOverlap, java.util.List<ScheduleActionExecution> runningActions, java.util.List<ScheduleActionResult> recentActions, java.util.List<java.time.Instant> nextActionTimes, java.time.Instant createdAt, java.time.Instant lastUpdatedAt)
-
-
Method Detail
-
getNumActions
public long getNumActions()
Get the number of actions taken by the schedule.- Returns:
- number of actions taken
-
getNumActionsMissedCatchupWindow
public long getNumActionsMissedCatchupWindow()
Get the number of actions skipped due to missing the catchup window.- Returns:
- number of actions skipped due to catchup window
-
getNumActionsSkippedOverlap
public long getNumActionsSkippedOverlap()
Get the number of actions skipped due to overlap.- Returns:
- number of actions skipped due to overlap
-
getRunningActions
public java.util.List<ScheduleActionExecution> getRunningActions()
Get a list of currently running actions.- Returns:
- list of currently running actions
-
getRecentActions
public java.util.List<ScheduleActionResult> getRecentActions()
Get a list of the most recent actions, oldest first.- Returns:
- list of the most recent actions
-
getNextActionTimes
public java.util.List<java.time.Instant> getNextActionTimes()
Get a list of the next scheduled action times.- Returns:
- list of the next recent times
-
getCreatedAt
public java.time.Instant getCreatedAt()
Get the time the schedule was created at.- Returns:
- time the schedule was created
-
getLastUpdatedAt
@Nullable public java.time.Instant getLastUpdatedAt()
Get the last time the schedule was updated.- Returns:
- last time the schedule was updated
-
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
-
-