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
Represents the current execution state of the task.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe task is not executing and will not begin execution in the future.The task is repeating and currently executing, but future executions are cancelled and will not occur.The task is not repeating, and the task finished executing.The task is currently not executing, but may begin execution in the future.The task is currently executing. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduledTask.ExecutionState
Returns the enum constant of this class with the specified name.static ScheduledTask.ExecutionState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDLE
The task is currently not executing, but may begin execution in the future. -
RUNNING
The task is currently executing. -
FINISHED
The task is not repeating, and the task finished executing. -
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
The task is repeating and currently executing, but future executions are cancelled and will not occur.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-