@Deprecated public class AuthFastLeaderElection extends Object implements Election
Modifier and Type | Class and Description |
---|---|
static class |
AuthFastLeaderElection.Notification
Deprecated.
|
static class |
AuthFastLeaderElection.ToSend
Deprecated.
|
Constructor and Description |
---|
AuthFastLeaderElection(QuorumPeer self)
Deprecated.
|
AuthFastLeaderElection(QuorumPeer self,
boolean auth)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Vote |
lookForLeader()
Deprecated.
Invoked in QuorumPeer to find or elect a new leader.
|
void |
shutdown()
Deprecated.
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 InterruptedException
lookForLeader
in interface Election
InterruptedException
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.