Package net.i2p.router.web
Class DeadlockDetector
java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
net.i2p.router.web.DeadlockDetector
- All Implemented Interfaces:
Runnable
Periodic check
ref: https://dzone.com/articles/how-detect-java-deadlocks
In routerconsole because java.lang.management is
not available in Android.
- Since:
- 0.9.55, public since 0.9.56
-
Field Summary
Fields inherited from class net.i2p.util.SimpleTimer2.TimedEvent
_state, DEFAULT_FUZZ
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
detect
(RouterContext ctx) static boolean
Return the results of the last test.void
Simple interface for events to be queued up and notified on expiration the time requested has been reached (this call should NOT block, otherwise the whole SimpleTimer gets backed up)Methods inherited from class net.i2p.util.SimpleTimer2.TimedEvent
cancel, forceReschedule, reschedule, reschedule, run, schedule, setFuzz
-
Constructor Details
-
DeadlockDetector
-
-
Method Details
-
timeReached
public void timeReached()Description copied from class:SimpleTimer2.TimedEvent
Simple interface for events to be queued up and notified on expiration the time requested has been reached (this call should NOT block, otherwise the whole SimpleTimer gets backed up)- Specified by:
timeReached
in classSimpleTimer2.TimedEvent
-
detect
-
isDeadlocked
public static boolean isDeadlocked()Return the results of the last test. Does not run a new test.- Since:
- 0.9.56
-