Enum Class ScheduledTask.ExecutionState

java.lang.Object
java.lang.Enum<ScheduledTask.ExecutionState>
io.papermc.paper.threadedregions.scheduler.ScheduledTask.ExecutionState
All Implemented Interfaces:
Serializable, Comparable<ScheduledTask.ExecutionState>, Constable
Enclosing interface:
ScheduledTask

public static enum ScheduledTask.ExecutionState extends Enum<ScheduledTask.ExecutionState>
Represents the current execution state of the task.
  • Enum Constant Details

    • IDLE

      public static final ScheduledTask.ExecutionState IDLE
      The task is currently not executing, but may begin execution in the future.
    • RUNNING

      public static final ScheduledTask.ExecutionState RUNNING
      The task is currently executing.
    • FINISHED

      public static final ScheduledTask.ExecutionState FINISHED
      The task is not repeating, and the task finished executing.
    • CANCELLED

      public static final ScheduledTask.ExecutionState CANCELLED
      The task is not executing and will not begin execution in the future. If this task is not repeating, then this task was never executed.
    • CANCELLED_RUNNING

      public static final ScheduledTask.ExecutionState CANCELLED_RUNNING
      The task is repeating and currently executing, but future executions are cancelled and will not occur.
  • Method Details

    • values

      public static ScheduledTask.ExecutionState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ScheduledTask.ExecutionState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null