public class LeaderElectionTask extends RaftNodeStatusAwareTask implements Runnable
PreVoteResponseHandlerTask
after a follower receives
votes from at least majority. Local member becomes a candidate using
RaftState.toCandidate()
and sends VoteRequest
s to other
members.
Also a LeaderElectionTimeoutTask
is scheduled with a
RaftNodeImpl.getLeaderElectionTimeoutInMillis()
delay to trigger
leader election if one is not elected yet.
logger, raftNode
Constructor and Description |
---|
LeaderElectionTask(RaftNodeImpl raftNode) |
Modifier and Type | Method and Description |
---|---|
protected void |
innerRun() |
run
public LeaderElectionTask(RaftNodeImpl raftNode)
protected void innerRun()
innerRun
in class RaftNodeStatusAwareTask
Copyright © 2022 Hazelcast, Inc.. All Rights Reserved.