public static enum ThreadInfo.State extends Enum<ThreadInfo.State>
Enum Constant and Description |
---|
BLOCKED |
INTERRUPTED |
NEW |
NOTIFIED |
RUNNING |
SLEEPING |
TERMINATED |
TIMEDOUT |
TIMEOUT_WAITING |
UNBLOCKED |
WAITING |
Modifier and Type | Method and Description |
---|---|
static ThreadInfo.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ThreadInfo.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadInfo.State NEW
public static final ThreadInfo.State RUNNING
public static final ThreadInfo.State BLOCKED
public static final ThreadInfo.State UNBLOCKED
public static final ThreadInfo.State WAITING
public static final ThreadInfo.State TIMEOUT_WAITING
public static final ThreadInfo.State NOTIFIED
public static final ThreadInfo.State INTERRUPTED
public static final ThreadInfo.State TIMEDOUT
public static final ThreadInfo.State TERMINATED
public static final ThreadInfo.State SLEEPING
public static ThreadInfo.State[] values()
for (ThreadInfo.State c : ThreadInfo.State.values()) System.out.println(c);
public static ThreadInfo.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 null