public class ThreadDescriptor extends Object implements IHasMicroNodeRepresentation
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEFAULT_ENABLE_THREAD_INFO |
| Constructor and Description |
|---|
ThreadDescriptor(Thread aThread,
String sStackTrace) |
| Modifier and Type | Method and Description |
|---|---|
static ThreadDescriptor |
createForCurrentThread(Throwable t) |
IMicroElement |
getAsMicroNode() |
String |
getAsString() |
String |
getDescriptor() |
String |
getLockInfo() |
String |
getStackTrace() |
String |
getStackTraceNotNull() |
long |
getThreadID() |
Thread.State |
getThreadState() |
static boolean |
isEnableThreadInfo() |
static void |
setEnableThreadInfo(boolean bEnableThreadInfo)
Enable the retrieval of
ThreadInfo objects. |
public static final boolean DEFAULT_ENABLE_THREAD_INFO
public static void setEnableThreadInfo(boolean bEnableThreadInfo)
ThreadInfo objects. Warning: this takes a
lot of CPU, so enable this only when you are not running a performance
critical application! The default is false.bEnableThreadInfo - true to enabled, false to disable.public static boolean isEnableThreadInfo()
public long getThreadID()
public Thread.State getThreadState()
@Nonnull public IMicroElement getAsMicroNode()
getAsMicroNode in interface IHasMicroNodeRepresentationIMicroNode. May not be null.@Nonnull public static ThreadDescriptor createForCurrentThread(@Nullable Throwable t)
Copyright © 2014–2017 Philip Helger. All rights reserved.