Package com.helger.commons.deadlock
Class ThreadDeadlockInfo
java.lang.Object
com.helger.commons.deadlock.ThreadDeadlockInfo
Represents information about a single deadlocked thread.
- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionThreadDeadlockInfo(ThreadInfo aThreadInfo, Thread aThread, StackTraceElement[] aStackTrace) -
Method Summary
-
Constructor Details
-
ThreadDeadlockInfo
public ThreadDeadlockInfo(@Nonnull ThreadInfo aThreadInfo, @Nonnull Thread aThread, @Nullable StackTraceElement[] aStackTrace)
-
-
Method Details
-
getThreadInfo
- Returns:
- The
ThreadInfoas returned from JMX bean
-
getThread
- Returns:
- The underlying thread. Never
null.
-
hasStackTrace
public boolean hasStackTrace()- Returns:
trueif a stack trace is present,falseotherwise
-
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.
-
toString
-