public enum ThreadStatus extends java.lang.Enum<ThreadStatus>
These constants are used as parameters in various Connection
methods.
Enum Constant and Description |
---|
ALL
All thread statuses.
|
BLOCKING
Only when the thread is blocking.
|
NET_IO
Only when the thread is waiting for the network to accept or deliver data.
|
RUNNING
Only when the thread is running.
|
SLEEPING
Only when the thread is sleeping.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns a verbose description of the thread status.
|
java.lang.String |
toString() |
static ThreadStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ThreadStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ThreadStatus ALL
public static final ThreadStatus RUNNING
public static final ThreadStatus SLEEPING
Object.wait()
or uses
corresponding facilities of java.util.concurrent
.public static final ThreadStatus BLOCKING
synchronized
method or block or uses corresponding facilities of java.util.concurrent
.public static final ThreadStatus NET_IO
public static ThreadStatus[] values()
for (ThreadStatus c : ThreadStatus.values()) System.out.println(c);
public static ThreadStatus 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 java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Enum<ThreadStatus>