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(boolean) 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,
boolean disruptive) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
innerRun() |
localMember, runpublic LeaderElectionTask(RaftNodeImpl raftNode, boolean disruptive)
protected void innerRun()
innerRun in class RaftNodeStatusAwareTaskCopyright © 2019 Hazelcast, Inc.. All rights reserved.