Package org.apache.commons.exec

# Interface TimeoutObserver

All Superinterfaces:
  `Consumer<Watchdog>`

All Known Implementing Classes:
  `ExecuteWatchdog`

public interface TimeoutObserver extends Consumer<Watchdog>
Interface for classes that want to be notified by Watchdog.

See Also:
  - `Watchdog`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `default void`
  `accept(Watchdog w)`
  `void`
  `timeoutOccured(Watchdog w)`
  Called when the watchdog times out.

  ### Methods inherited from interface java.util.function.Consumer

  `andThen`

- ## Method Details

  - ### accept

    default void accept(Watchdog w)
    Specified by:
      `accept` in interface `Consumer<Watchdog>`
    Since:
      1.6.0

  - ### timeoutOccured

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