public enum ThreadPriority extends Enum<ThreadPriority>
Enum Constant and Description |
---|
high
High priority.
|
higher
Higher priority.
|
highest
Highest priority.
|
low
Low priority.
|
lower
Lower priority.
|
lowest
Lowest prority.
|
middle
Middle priority.
|
Modifier and Type | Field and Description |
---|---|
static int[] |
javaPriority
Get the java priority corresponding to each ScanPriority.
|
Modifier and Type | Method and Description |
---|---|
int |
getJavaPriority()
Get the Java priority for this ScanPriority.
|
static int |
getJavaPriority(ThreadPriority threadPriority)
Get the javaPriority for a given scanPriority.
|
static ThreadPriority |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadPriority[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadPriority lowest
public static final ThreadPriority lower
public static final ThreadPriority low
public static final ThreadPriority middle
public static final ThreadPriority high
public static final ThreadPriority higher
public static final ThreadPriority highest
public static final int[] javaPriority
public static ThreadPriority[] values()
for (ThreadPriority c : ThreadPriority.values()) System.out.println(c);
public static ThreadPriority 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 nullpublic int getJavaPriority()
public static int getJavaPriority(ThreadPriority threadPriority)
threadPriority
- The threadPriority.Copyright © 2014. All Rights Reserved.