public class ThreadUtils
extends java.lang.Object
| Constructor and Description |
|---|
ThreadUtils() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.Set<java.lang.Thread> |
getALlThreads()
Get a
Set of all running Threads |
static java.util.Set<java.lang.Thread> |
getAllThreadsFromClassLoader(java.lang.ClassLoader classLoader)
Get a
Set of all Threads started by a Class loaded from the given ClassLoader |
static boolean |
isThreadFromClassLoader(java.lang.Thread thread,
java.lang.ClassLoader classLoader)
Check if the given
Thread is started by a Class loaded from the given ClassLoader |
public static java.util.Set<java.lang.Thread> getALlThreads()
Set of all running ThreadsSetpublic static boolean isThreadFromClassLoader(java.lang.Thread thread,
java.lang.ClassLoader classLoader)
Thread is started by a Class loaded from the given ClassLoaderthread - The Thread to checkclassLoader - The ClassLoader of the Class to checktrue if the Thread is started by a Class loaded from the given ClassLoaderpublic static java.util.Set<java.lang.Thread> getAllThreadsFromClassLoader(java.lang.ClassLoader classLoader)
Set of all Threads started by a Class loaded from the given ClassLoaderclassLoader - The ClassLoader of the Class to checkSet