public class VoteRequestHandlerTask extends RaftNodeStatusAwareTask implements Runnable
VoteRequest
sent by a candidate. Responds with
a VoteResponse
to the sender. Leader election is initiated by
LeaderElectionTask
.
See 5.2 Leader election section of In Search of an Understandable Consensus Algorithm paper by Diego Ongaro and John Ousterhout.
VoteRequest
,
VoteResponse
,
LeaderElectionTask
logger, raftNode
Constructor and Description |
---|
VoteRequestHandlerTask(RaftNodeImpl raftNode,
VoteRequest req) |
Modifier and Type | Method and Description |
---|---|
protected void |
innerRun() |
run
public VoteRequestHandlerTask(RaftNodeImpl raftNode, VoteRequest req)
protected void innerRun()
innerRun
in class RaftNodeStatusAwareTask
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.