@FunctionalInterface public interface ThreadState
Thread.State.| Modifier and Type | Method and Description |
|---|---|
default boolean |
isRunning()
Returns true if the underlying thread has been started but has not yet terminated.
|
default boolean |
isTerminated()
Returns true if the underlying thread has terminated.
|
java.lang.Thread.State |
threadState()
Returns the state of the underlying thread.
|
java.lang.Thread.State threadState()
Thread.getState()default boolean isRunning()
thread state is neither NEW nor
TERMINATEDdefault boolean isTerminated()
thread state is TERMINATED