public class ThreadDump extends Object
Constructor and Description |
---|
ThreadDump(ThreadMXBean threadMXBean) |
Modifier and Type | Method and Description |
---|---|
void |
dump(boolean lockedMonitors,
boolean lockedSynchronizers,
OutputStream out)
Dumps all of the threads' current information, optionally including synchronization, to an output stream.
|
void |
dump(OutputStream out)
Dumps all of the threads' current information, including synchronization, to an output stream.
|
public ThreadDump(ThreadMXBean threadMXBean)
public void dump(OutputStream out)
out
- an output streampublic void dump(boolean lockedMonitors, boolean lockedSynchronizers, OutputStream out)
ThreadMXBean.dumpAllThreads(boolean, boolean)
lockedMonitors
- dump all locked monitors if truelockedSynchronizers
- dump all locked ownable synchronizers if trueout
- an output streamCopyright © 2020. All rights reserved.