public enum JobPriority extends java.lang.Enum<JobPriority>
Job
.
Every task that is in a task queue is assigned a priority. The priority of
the task determines where the task will be ordered in the task queue. Higher
priority tasks will be ordered before lower priority tasks and will be run
first.Job
Enum Constant and Description |
---|
ABOVE_NORMAL
Above normal priority.
|
BELOW_NORMAL
Below normal priority.
|
HIGH
High priority.
|
LOW
Low priority.
|
NORMAL
Normal priority.
|
Modifier and Type | Method and Description |
---|---|
static JobPriority |
getDefault()
Get the enum constant that is considered to be the default.
|
static JobPriority |
getFromValue(int value)
Get the enum constant that is associated with the given numeric value.
|
int |
getValue()
Get the numeric value associated with this enum constant.
|
static JobPriority |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JobPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JobPriority LOW
public static final JobPriority BELOW_NORMAL
public static final JobPriority NORMAL
public static final JobPriority ABOVE_NORMAL
public static final JobPriority HIGH
public static JobPriority[] values()
for (JobPriority c : JobPriority.values()) System.out.println(c);
public static JobPriority valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static JobPriority getFromValue(int value)
value
- a numeric value.public static JobPriority getDefault()