Package com.complexible.common.util

# Class ThreadDump

java.lang.Object
com.complexible.common.util.ThreadDump

public class ThreadDump extends Object
A convenience class for getting a thread dump.

Note: Adjusted from Dropwizard metrics to perform grouping of threads.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ThreadDump(ThreadMXBean threadMXBean)`
  `ThreadDump(ThreadMXBean threadMXBean, Comparator<Map.Entry<List<StackTraceElement>,List<ThreadInfo>>> comparator)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static String`
  `defaultDump(boolean includeLocks)`
  `String`
  `dump(boolean lockedMonitors, boolean lockedSynchronizers)`
  Dumps all of the threads' current informationas a string.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ThreadDump

    public ThreadDump(ThreadMXBean threadMXBean)

  - ### ThreadDump

    public ThreadDump(ThreadMXBean threadMXBean, Comparator<Map.Entry<List<StackTraceElement>,List<ThreadInfo>>> comparator)

- ## Method Details

  - ### defaultDump

    public static String defaultDump(boolean includeLocks)

  - ### dump

    public String dump(boolean lockedMonitors, boolean lockedSynchronizers)
    Dumps all of the threads' current informationas a string.
    Parameters:
      `lockedMonitors` - if `true`, dump all locked monitors.
      `lockedSynchronizers` - if `true`, dump all locked ownable synchronizers.