From 770c9b5c6e619230eb649cc9e2f88050faea5512 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Thu, 5 Sep 2024 00:47:12 +0200 Subject: [PATCH] Add LoggingThread#getState method --- .../sosengine/base/logging/LoggingThread.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/base/src/main/java/de/staropensource/sosengine/base/logging/LoggingThread.java b/base/src/main/java/de/staropensource/sosengine/base/logging/LoggingThread.java index 71f44a58b..b319705ff 100644 --- a/base/src/main/java/de/staropensource/sosengine/base/logging/LoggingThread.java +++ b/base/src/main/java/de/staropensource/sosengine/base/logging/LoggingThread.java @@ -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(); + } }