public static enum ScheduledTask.ScheduledTaskState extends Enum<ScheduledTask.ScheduledTaskState>
Enum Constant and Description |
---|
CANCELED
Task cancelled, scheduled to be removed from the task map.
|
RUNNING
Has ran, and will continue to unless removed from the task map.
|
SWITCHING
In the process of switching to the running state.
|
WAITING
Never ran before, waiting for the offset to pass.
|
Modifier and Type | Field and Description |
---|---|
boolean |
isActive |
Modifier and Type | Method and Description |
---|---|
static ScheduledTask.ScheduledTaskState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScheduledTask.ScheduledTaskState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScheduledTask.ScheduledTaskState WAITING
public static final ScheduledTask.ScheduledTaskState SWITCHING
public static final ScheduledTask.ScheduledTaskState RUNNING
public static final ScheduledTask.ScheduledTaskState CANCELED
public static ScheduledTask.ScheduledTaskState[] values()
for (ScheduledTask.ScheduledTaskState c : ScheduledTask.ScheduledTaskState.values()) System.out.println(c);
public static ScheduledTask.ScheduledTaskState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null