Class AuthFastLeaderElection

  • All Implemented Interfaces:
    Election

    @Deprecated
    public class AuthFastLeaderElection
    extends java.lang.Object
    implements Election
    Deprecated.
    This class has been deprecated as of release 3.4.0.
    • Constructor Detail

      • AuthFastLeaderElection

        public AuthFastLeaderElection​(QuorumPeer self,
                                      boolean auth)
        Deprecated.
      • AuthFastLeaderElection

        public AuthFastLeaderElection​(QuorumPeer self)
        Deprecated.
    • Method Detail

      • shutdown

        public void shutdown()
        Deprecated.
        There is nothing to shutdown in this implementation of leader election, so we simply have an empty method.
        Specified by:
        shutdown in interface Election
      • lookForLeader

        public Vote lookForLeader()
                           throws java.lang.InterruptedException
        Deprecated.
        Invoked in QuorumPeer to find or elect a new leader.
        Specified by:
        lookForLeader in interface Election
        Throws:
        java.lang.InterruptedException