Interface TimeoutObserver

  • All Superinterfaces:
    java.util.function.Consumer<Watchdog>
    All Known Implementing Classes:
    ExecuteWatchdog

    public interface TimeoutObserver
    extends java.util.function.Consumer<Watchdog>
    Interface for classes that want to be notified by Watchdog.
    See Also:
    Watchdog
    • Method Detail

      • accept

        default void accept​(Watchdog w)
        Specified by:
        accept in interface java.util.function.Consumer<Watchdog>
        Since:
        1.6.0
      • timeoutOccured

        void timeoutOccured​(Watchdog w)
        Called when the watchdog times out.
        Parameters:
        w - the watchdog that timed out.