Package org.ros.concurrent
Class WatchdogTimer
java.lang.Object
org.ros.concurrent.WatchdogTimer
A
WatchdogTimer expects to receive a pulse() at least once
every period units. Once per every period in which a
pulse() is not received, the provided Runnable will be
executed.- Author:
- damonkohler@google.com (Damon Kohler)
-
Constructor Summary
ConstructorsConstructorDescriptionWatchdogTimer(ScheduledExecutorService scheduledExecutorService, long period, TimeUnit unit, Runnable runnable) -
Method Summary
-
Constructor Details
-
WatchdogTimer
public WatchdogTimer(ScheduledExecutorService scheduledExecutorService, long period, TimeUnit unit, Runnable runnable)
-
-
Method Details
-
start
public void start() -
pulse
public void pulse() -
cancel
public void cancel()
-