接口 HeartbeatSender


public interface HeartbeatSender
The heartbeat sender which is responsible for sending heartbeat to remote dashboard periodically per interval.
作者:
leyou, Eric Zhao
  • 方法概要

    修饰符和类型
    方法
    说明
    long
    Default interval in milliseconds of the sender.
    boolean
    Send heartbeat to Sentinel Dashboard.
  • 方法详细资料

    • sendHeartbeat

      boolean sendHeartbeat() throws Exception
      Send heartbeat to Sentinel Dashboard. Each invocation of this method will send heartbeat once. Sentinel core is responsible for invoking this method at every intervalMs() 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