public interface HeartbeatTimer extends Reconfigurable
HeartbeatThread
calls the tick()
method.Modifier and Type | Method and Description |
---|---|
long |
tick()
Waits until next heartbeat should be executed.
|
default void |
update()
When this object needs to be reconfigured
due to external configuration change etc.,
this function will be invoked.
|
default void update()
update
in interface Reconfigurable
long tick() throws InterruptedException
InterruptedException
- if the thread is interrupted while waitingCopyright © 2023. All Rights Reserved.