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 Details

  • Method Details

    • getThreadInfo

      @Nonnull public ThreadInfo getThreadInfo()
      Returns:
      The ThreadInfo as returned from JMX bean
    • getThread

      @Nonnull public Thread getThread()
      Returns:
      The underlying thread. Never null.
    • hasStackTrace

      public boolean hasStackTrace()
      Returns:
      true if a stack trace is present, false otherwise
    • getAllStackTraceElements

      @Nullable @ReturnsMutableCopy public StackTraceElement[] getAllStackTraceElements()
      Returns:
      The stack trace at the time the dead lock was found. May be null for certain system threads. Use getThread ().getStackTrace () to retrieve the current stack trace.
    • toString

      public String toString()
      Overrides:
      toString in class Object