Class 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 Detail

      • DeadlockDetector

        public DeadlockDetector​(RouterContext ctx)
    • Method Detail

      • 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
      • isDeadlocked

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