|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ros.concurrent.WatchdogTimer
public class WatchdogTimer
A WatchdogTimer
expects to receive a pulse()
at least once
every period
unit
s. Once per every period in which a
pulse()
is not received, the provided Runnable
will be
executed.
Constructor Summary | |
---|---|
WatchdogTimer(java.util.concurrent.ScheduledExecutorService scheduledExecutorService,
long period,
java.util.concurrent.TimeUnit unit,
java.lang.Runnable runnable)
|
Method Summary | |
---|---|
void |
cancel()
|
void |
pulse()
|
void |
start()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WatchdogTimer(java.util.concurrent.ScheduledExecutorService scheduledExecutorService, long period, java.util.concurrent.TimeUnit unit, java.lang.Runnable runnable)
Method Detail |
---|
public void start()
public void pulse()
public void cancel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |