Module org.elasticsearch.server
Interface LeaderHeartbeatService
- All Known Implementing Classes:
StoreHeartbeatService
public interface LeaderHeartbeatService
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
start
(DiscoveryNode currentLeader, long term, ActionListener<Long> completionListener) Start a heartbeat process for the given term.void
stop()
-
Field Details
-
NO_OP
-
-
Method Details
-
start
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()
-