Package com.helger.commons.deadlock
Class ThreadDeadlockInfo
- java.lang.Object
-
- com.helger.commons.deadlock.ThreadDeadlockInfo
-
@Immutable public class ThreadDeadlockInfo extends Object
Represents information about a single deadlocked thread.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description ThreadDeadlockInfo(ThreadInfo aThreadInfo, Thread aThread, StackTraceElement[] aStackTrace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StackTraceElement[]getAllStackTraceElements()ThreadgetThread()ThreadInfogetThreadInfo()booleanhasStackTrace()StringtoString()
-
-
-
Constructor Detail
-
ThreadDeadlockInfo
public ThreadDeadlockInfo(@Nonnull ThreadInfo aThreadInfo, @Nonnull Thread aThread, @Nullable StackTraceElement[] aStackTrace)
-
-
Method Detail
-
getThreadInfo
@Nonnull public ThreadInfo getThreadInfo()
- Returns:
- The
ThreadInfoas returned from JMX bean
-
hasStackTrace
public boolean hasStackTrace()
- Returns:
trueif a stack trace is present,falseotherwise
-
getAllStackTraceElements
@Nullable @ReturnsMutableCopy public StackTraceElement[] getAllStackTraceElements()
- Returns:
- The stack trace at the time the dead lock was found. May be
nullfor certain system threads. UsegetThread ().getStackTrace ()to retrieve the current stack trace.
-
-