Package org.apache.commons.exec
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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidaccept(Watchdog w)voidtimeoutOccured(Watchdog w)Called when the watchdog times out.
-
-
-
Method Detail
-
accept
default void accept(Watchdog w)
- Specified by:
acceptin interfacejava.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.
-
-