Package org.graylog2.cluster.leader
Interface LeaderElectionService
- All Known Implementing Classes:
AutomaticLeaderElectionService
,FakeLeaderElectionService
,StaticLeaderElectionService
public interface LeaderElectionService
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isLeader()
Check if the current node is the leader of the cluster.
-
Method Details
-
isLeader
boolean isLeader()Check if the current node is the leader of the cluster.This method might be called frequently. Implementations should be performant and resource-friendly.
- Returns:
- true if the current node is the leader, false if it is not
-