public enum TaskPriority extends java.lang.Enum<TaskPriority>
This priority has nothing to do with the system level thread priority. Instead this only represents a priority within the thread pool start a task.
|Enum Constant and Description|
High priority tasks should be executed as soon as possible within the thread pool.
Low priority tasks are as the name indicates lower priority compared to high priority task.
This priority is never guaranteed to run.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final TaskPriority High
public static final TaskPriority Low
PrioritySchedulerServiceas to how this priority is enforced.
A generalization for low priority tasks is that they should not be dependent on an accurate execution time.
public static final TaskPriority Starvable
public static TaskPriority values()
for (TaskPriority c : TaskPriority.values()) System.out.println(c);
public static TaskPriority 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 name
java.lang.NullPointerException- if the argument is null