Package com.helger.commons.deadlock
Class ThreadDeadlockDetector
- java.lang.Object
-
- com.helger.commons.deadlock.ThreadDeadlockDetector
-
- Direct Known Subclasses:
ThreadDeadlockDetectionTimer
@NotThreadSafe public class ThreadDeadlockDetector extends Object
This is the main dead lock detector, based on JMXThreadMXBean- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description ThreadDeadlockDetector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CallbackList<IThreadDeadlockCallback>callbacks()voidfindDeadlockedThreads()This is the main method to be invoked to find deadlocked threads.
-
-
-
Method Detail
-
findDeadlockedThreads
public void findDeadlockedThreads()
This is the main method to be invoked to find deadlocked threads. In case a deadlock is found, all registered callbacks are invoked.
-
callbacks
@Nonnull @ReturnsMutableObject public CallbackList<IThreadDeadlockCallback> callbacks()
-
-