Add LoggingThread#getState method
This commit is contained in:
parent
c9bf6126a0
commit
770c9b5c6e
1 changed files with 11 additions and 0 deletions
|
@ -131,4 +131,15 @@ public class LoggingThread {
|
|||
} else
|
||||
loggingThread.start();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the {@link Thread.State} of the logging thread.
|
||||
*
|
||||
* @return logging thread state
|
||||
* @since v1-alpha4
|
||||
* @see Thread.State
|
||||
*/
|
||||
public static @NotNull Thread.State getState() {
|
||||
return loggingThread.getState();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue