public final class SleepingTimer extends Object implements HeartbeatTimer
| Constructor and Description |
|---|
SleepingTimer(String threadName,
long intervalMs)
Creates a new instance of
SleepingTimer. |
public SleepingTimer(String threadName, long intervalMs)
SleepingTimer.threadName - the thread nameintervalMs - the heartbeat intervalpublic void tick()
throws InterruptedException
tick in interface HeartbeatTimerInterruptedException - if the thread is interrupted while waitingCopyright © 2015. All Rights Reserved.