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. UsesThreadDeadlockDetectorinternally.- Author:
- Philip Helger
-
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_DEADLOCK_CHECK_PERIODThe number of milliseconds between checking for deadlocks.static longINITIAL_DELAY_MS
-
Constructor Summary
Constructors Constructor Description ThreadDeadlockDetectionTimer()ThreadDeadlockDetectionTimer(long nDeadlockCheckPeriod)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EChangestop()Stop the deadlock detection task-
Methods inherited from class com.helger.commons.deadlock.ThreadDeadlockDetector
callbacks, findDeadlockedThreads
-
-
-
-
Field Detail
-
DEFAULT_DEADLOCK_CHECK_PERIOD
public static final long DEFAULT_DEADLOCK_CHECK_PERIOD
The 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:
- Constant Field Values
-
INITIAL_DELAY_MS
public static final long INITIAL_DELAY_MS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ThreadDeadlockDetectionTimer
public ThreadDeadlockDetectionTimer()
-
ThreadDeadlockDetectionTimer
public ThreadDeadlockDetectionTimer(@Nonnegative long nDeadlockCheckPeriod)
-
-
Method Detail
-
stop
@Nonnull public EChange stop()
Stop the deadlock detection task- Specified by:
stopin interfaceIStoppable- Returns:
EChange
-
-