Class ScheduleInfo


  • public final class ScheduleInfo
    extends java.lang.Object
    Information about a schedule.
    • 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 class java.lang.Object
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object