Class DeadlockDetector

java.lang.Object
net.i2p.util.SimpleTimer2.TimedEvent
net.i2p.router.web.DeadlockDetector
All Implemented Interfaces:
Runnable

public class DeadlockDetector extends SimpleTimer2.TimedEvent
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
  • Constructor Details

  • 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 class SimpleTimer2.TimedEvent
    • detect

      public static boolean detect(RouterContext ctx)
    • isDeadlocked

      public static boolean isDeadlocked()
      Return the results of the last test. Does not run a new test.
      Since:
      0.9.56