Package com.helger.xml.util.thread
Class ThreadDescriptor
java.lang.Object
com.helger.xml.util.thread.ThreadDescriptor
- All Implemented Interfaces:
IHasMicroNodeRepresentation
This class contains the information of a single thread at a certain point of
time.
- Author:
- Philip Helger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadDescriptorlongstatic booleanstatic voidsetEnableThreadInfo(boolean bEnableThreadInfo) Enable the retrieval ofThreadInfoobjects.
-
Field Details
-
DEFAULT_ENABLE_THREAD_INFO
public static final boolean DEFAULT_ENABLE_THREAD_INFO- See Also:
-
-
Constructor Details
-
ThreadDescriptor
-
-
Method Details
-
setEnableThreadInfo
public static void setEnableThreadInfo(boolean bEnableThreadInfo) Enable the retrieval ofThreadInfoobjects. Warning: this takes a lot of CPU, so enable this only when you are not running a performance critical application! The default is false.- Parameters:
bEnableThreadInfo-trueto enabled,falseto disable.
-
isEnableThreadInfo
public static boolean isEnableThreadInfo() -
getThreadID
public long getThreadID() -
getThreadState
-
getDescriptor
-
getStackTrace
-
getStackTraceNotNull
-
getLockInfo
-
getAsString
-
getAsMicroNode
- Specified by:
getAsMicroNodein interfaceIHasMicroNodeRepresentation- Returns:
- this as an
IMicroNode. May not benull.
-
createForCurrentThread
-