-
- All Implemented Interfaces:
-
java.io.Serializable,java.lang.Comparable
public enum Thread.StateThe state of a reported Thread. These states correspond directly to java.lang.Thread.State, except for
{@code UNKNOWN}which indicates thata state could not be captured or mapped.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringdescriptor
-
Enum Constant Summary
Enum Constants Enum Constant Description UNKNOWNWAITINGTIMED_WAITINGTERMINATEDRUNNABLEBLOCKEDNEW
-
Method Summary
Modifier and Type Method Description static Thread.StateforThread(@NonNull() Thread thread)static Thread.StatebyDescriptor(@Nullable() String descriptor)Lookup the {@code State}for a given descriptor code.static Array<Thread.State>values()static Thread.StatevalueOf(String name)StringgetDescriptor()-
-
Method Detail
-
forThread
@NonNull() static Thread.State forThread(@NonNull() Thread thread)
-
byDescriptor
@NonNull() static Thread.State byDescriptor(@Nullable() String descriptor)
Lookup the
{@code State}for a given descriptor code. Unlike valueOf, this method will return UNKNOWN is nomatching{@code State}constant can be found.- Parameters:
descriptor- a consistent descriptor of the state constant to lookup
-
values
static Array<Thread.State> values()
-
valueOf
static Thread.State valueOf(String name)
-
getDescriptor
@NonNull() String getDescriptor()
-
-
-
-