@Singleton public class FakeLeaderElectionService extends com.google.common.util.concurrent.AbstractIdleService implements LeaderElectionService
| Constructor and Description |
|---|
FakeLeaderElectionService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isLeader()
Check if the current node is the leader of the cluster.
|
protected void |
shutDown() |
protected void |
startUp() |
public boolean isLeader()
LeaderElectionServiceThis method might be called frequently. Implementations should be performant and resource-friendly.
isLeader in interface LeaderElectionServiceprotected void startUp()
startUp in class com.google.common.util.concurrent.AbstractIdleServiceprotected void shutDown()
shutDown in class com.google.common.util.concurrent.AbstractIdleServiceCopyright © 2012–2022 Graylog, Inc.. All rights reserved.