public interface HeartbeatTimer
HeartbeatThread
calls the tick()
method.Modifier and Type | Method and Description |
---|---|
default void |
setIntervalMs(long intervalMs)
Sets the heartbeat interval.
|
void |
tick()
Waits until next heartbeat should be executed.
|
default void setIntervalMs(long intervalMs)
intervalMs
- the heartbeat interval in msvoid tick() throws InterruptedException
InterruptedException
- if the thread is interrupted while waitingCopyright © 2023. All Rights Reserved.