Class Schedule


  • public final class Schedule
    extends java.lang.Object
    A schedule for periodically running an action.
    • Method Detail

      • 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 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