Class Watchdog

  • All Implemented Interfaces:
    java.lang.Runnable

    public class Watchdog
    extends java.lang.Object
    implements java.lang.Runnable
    Generalization of ExecuteWatchdog.
    See Also:
    ExecuteWatchdog
    • Constructor Detail

      • Watchdog

        @Deprecated
        public Watchdog​(long timeoutMillis)
        Deprecated.
        Constructs a new instance.
        Parameters:
        timeoutMillis - the timeout duration.
    • Method Detail

      • fireTimeoutOccured

        protected final void fireTimeoutOccured()
        Fires a timeout occurred event for each observer.
      • getTimeout

        public java.time.Duration getTimeout()
        Gets the timeout.
        Returns:
        the timeout.
        Since:
        1.6.0
      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • start

        public void start()
        Starts a new thread.
      • stop

        public void stop()
        Requests a thread stop.