public enum JobStatus extends Enum<JobStatus>
Job state| Enum Constant and Description |
|---|
DONE
The job will not be run ever again
|
READY
This is an intermediate status before
RUNNING,
it means that the job is placed on the thread pool executor
and is waiting to be executed as soon as a thread is available. |
RUNNING
The job is currently running
|
SCHEDULED
The job will be executed at his scheduled time
|
| Modifier and Type | Method and Description |
|---|---|
static JobStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JobStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobStatus DONE
public static final JobStatus SCHEDULED
public static final JobStatus READY
RUNNING,
it means that the job is placed on the thread pool executor
and is waiting to be executed as soon as a thread is available.
This status should not last more than a few µs/ms except if the
thread pool is full and running tasks are not terminating.public static final JobStatus RUNNING
public static JobStatus[] values()
for (JobStatus c : JobStatus.values()) System.out.println(c);
public static JobStatus 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 nullCopyright © 2023 Coreoz. All rights reserved.