public class ThreadDeadlockDetector extends Object
Constructor and Description |
---|
ThreadDeadlockDetector()
Creates a new detector.
|
ThreadDeadlockDetector(ThreadMXBean threads)
Creates a new detector using the given
ThreadMXBean . |
Modifier and Type | Method and Description |
---|---|
Set<String> |
getDeadlockedThreads()
Returns a set of diagnostic stack traces for any deadlocked threads.
|
public ThreadDeadlockDetector()
public ThreadDeadlockDetector(ThreadMXBean threads)
ThreadMXBean
.threads
- a ThreadMXBean
Copyright © 2014. All Rights Reserved.