Enum Class ScheduledTask.CancelledState
java.lang.Object
java.lang.Enum<ScheduledTask.CancelledState>
io.papermc.paper.threadedregions.scheduler.ScheduledTask.CancelledState
- All Implemented Interfaces:
Serializable
,Comparable<ScheduledTask.CancelledState>
,Constable
- Enclosing interface:
ScheduledTask
Represents the result of attempting to cancel a 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 a repeating task, and could not be cancelled because the task has already finished execution.The task (repeating or not) is already cancelled.The task (repeating or not) has been successfully cancelled by the caller thread.The caller thread successfully stopped future executions of a repeating task, but the task is currently being executed.The repeating task's future executions are cancelled already, but the task is currently being executed.The task is not a repeating task, and could not be cancelled because the task is being executed. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScheduledTask.CancelledState
Returns the enum constant of this class with the specified name.static ScheduledTask.CancelledState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CANCELLED_BY_CALLER
The task (repeating or not) has been successfully cancelled by the caller thread. The task is not executing currently, and it will not begin execution in the future. -
CANCELLED_ALREADY
The task (repeating or not) is already cancelled. The task is not executing currently, and it will not begin execution in the future. -
RUNNING
The task is not a repeating task, and could not be cancelled because the task is being executed. -
ALREADY_EXECUTED
The task is not a repeating task, and could not be cancelled because the task has already finished execution. -
NEXT_RUNS_CANCELLED
The caller thread successfully stopped future executions of a repeating task, but the task is currently being executed. -
NEXT_RUNS_CANCELLED_ALREADY
The repeating task's future executions are cancelled already, but the task is currently being executed.
-
-
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
-