Class DeadMansSwitch

    • Method Summary

      Modifier and Type Method Description
      Handle addOnDeceaseListener​(java.lang.Runnable runnable)  
      void close()  
      static DeadMansSwitch create​(java.util.concurrent.ScheduledExecutorService scheduledExecutorService, int rateMs)  
      void keepAlive()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • create

        public static DeadMansSwitch create​(java.util.concurrent.ScheduledExecutorService scheduledExecutorService,
                                            int rateMs)
      • addOnDeceaseListener

        public Handle addOnDeceaseListener​(java.lang.Runnable runnable)
      • keepAlive

        public void keepAlive()
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface NotThrowingAutoCloseable