public interface HeartbeatExecutor extends Closeable
HeartbeatThread
calls the
heartbeat(long)
method.Modifier and Type | Method and Description |
---|---|
void |
close()
Cleans up any resources used by the heartbeat executor.
|
void |
heartbeat(long timeLimitMs)
Implements the heartbeat logic.
|
void heartbeat(long timeLimitMs) throws InterruptedException
timeLimitMs
- time limit in milliseconds this heartbeat should not exceed when runningInterruptedException
- if the thread is interruptedvoid close()
close
in interface AutoCloseable
close
in interface Closeable
Copyright © 2023. All Rights Reserved.