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