Modifier and Type | Class and Description |
---|---|
static class |
AuthFastLeaderElection.Notification |
static class |
AuthFastLeaderElection.ToSend |
Constructor and Description |
---|
AuthFastLeaderElection(QuorumPeer self) |
AuthFastLeaderElection(QuorumPeer self,
boolean auth) |
Modifier and Type | Method and Description |
---|---|
Vote |
lookForLeader()
Invoked in QuorumPeer to find or elect a new leader.
|
void |
shutdown()
There is nothing to shutdown in this implementation of
leader election, so we simply have an empty method.
|
public AuthFastLeaderElection(QuorumPeer self, boolean auth)
public AuthFastLeaderElection(QuorumPeer self)
public void shutdown()
public Vote lookForLeader() throws java.lang.InterruptedException
lookForLeader
in interface Election
java.lang.InterruptedException
Copyright © 2016 The Apache Software Foundation