接口 HeartbeatSender
public interface HeartbeatSender
The heartbeat sender which is responsible for sending heartbeat to remote dashboard
periodically per
interval.- 作者:
- leyou, Eric Zhao
-
方法概要
修饰符和类型方法说明longDefault interval in milliseconds of the sender.booleanSend heartbeat to Sentinel Dashboard.
-
方法详细资料
-
sendHeartbeat
Send heartbeat to Sentinel Dashboard. Each invocation of this method will send heartbeat once. Sentinel core is responsible for invoking this method at everyintervalMs()interval.- 返回:
- whether heartbeat is successfully send.
- 抛出:
Exception- if error occurs
-
intervalMs
long intervalMs()Default interval in milliseconds of the sender. It would take effect only when the heartbeat interval is not configured in Sentinel config property.- 返回:
- default interval of the sender in milliseconds
-