public static enum WorkerTask.State extends Enum<WorkerTask.State>
Enum Constant and Description |
---|
COMPLETED
Task completed without errors.
|
EXCEPTION
Task completed with an exception.
|
NOT_STARTED
Not yet started task, this is the initial state,
if not executing or posted (queued).
|
POSTED
Task has been posted to a queue, but not yet started.
|
RUNNING
Task is running.
|
Modifier and Type | Method and Description |
---|---|
static WorkerTask.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WorkerTask.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorkerTask.State NOT_STARTED
public static final WorkerTask.State POSTED
public static final WorkerTask.State RUNNING
public static final WorkerTask.State COMPLETED
public static final WorkerTask.State EXCEPTION
public static WorkerTask.State[] values()
for (WorkerTask.State c : WorkerTask.State.values()) System.out.println(c);
public static WorkerTask.State 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 nulliizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.