Package com.helger.commons.deadlock
Class ThreadDeadlockDetectionTimer
java.lang.Object
com.helger.commons.deadlock.ThreadDeadlockDetector
com.helger.commons.deadlock.ThreadDeadlockDetectionTimer
- All Implemented Interfaces:
IStoppable
@NotThreadSafe
public class ThreadDeadlockDetectionTimer
extends ThreadDeadlockDetector
implements IStoppable
A dead lock detection timer that checks for dead locks in a certain interval.
Uses
ThreadDeadlockDetector internally.- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longThe number of milliseconds between checking for deadlocks.static final long -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.helger.commons.deadlock.ThreadDeadlockDetector
callbacks, findDeadlockedThreads
-
Field Details
-
DEFAULT_DEADLOCK_CHECK_PERIOD
public static final long DEFAULT_DEADLOCK_CHECK_PERIODThe number of milliseconds between checking for deadlocks. It may be expensive to check for deadlocks, and it is not critical to know so quickly.- See Also:
-
INITIAL_DELAY_MS
public static final long INITIAL_DELAY_MS- See Also:
-
-
Constructor Details
-
ThreadDeadlockDetectionTimer
public ThreadDeadlockDetectionTimer() -
ThreadDeadlockDetectionTimer
-
-
Method Details
-
stop
Stop the deadlock detection task- Specified by:
stopin interfaceIStoppable- Returns:
EChange
-