Interface LeaderHeartbeatService

All Known Implementing Classes:
StoreHeartbeatService

public interface LeaderHeartbeatService
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    start(DiscoveryNode currentLeader, long term, ActionListener<Long> completionListener)
    Start a heartbeat process for the given term.
    void
     
  • Field Details

  • Method Details

    • start

      void start(DiscoveryNode currentLeader, long term, ActionListener<Long> completionListener)
      Start a heartbeat process for the given term. The listener is notified when the heartbeat process completes, which may happen if it fails to write a heartbeat, or a newer term is discovered.
    • stop

      void stop()