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 VoteRequests 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() |
runpublic LeaderElectionTask(RaftNodeImpl raftNode)
protected void innerRun()
innerRun in class RaftNodeStatusAwareTaskCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.