public class PreLeader extends AbstractLeader
The use of a no-op entry in this manner is outlined in the last paragraph in §8 of the extended raft version.
context, log
Constructor and Description |
---|
PreLeader(RaftActorContext context) |
Modifier and Type | Method and Description |
---|---|
RaftActorBehavior |
handleMessage(akka.actor.ActorRef sender,
Object message)
Handle a message.
|
addFollower, beforeSendHeartbeat, close, followerLogSize, getFollower, getFollowerIds, getLeaderId, getLeaderPayloadVersion, getMinIsolatedLeaderPeerCount, handleAppendEntries, handleAppendEntriesReply, handleRequestVoteReply, initiateCaptureSnapshot, isLeaderIsolated, printFollowerStates, removeClientRequestTracker, removeFollower, sendAppendEntries, updateMinReplicaCount
actor, appendEntries, applyLogToStateMachine, canGrantVote, canStartElection, createBehavior, currentTerm, electionDuration, getId, getLogEntryIndex, getLogEntryOrSnapshotTerm, getLogEntryTerm, getMajorityVoteCount, getReplicatedToAllIndex, internalSwitchBehavior, internalSwitchBehavior, lastIndex, lastTerm, logName, performSnapshotWithoutCapture, requestVote, scheduleElection, setReplicatedToAllIndex, state, stopElection, switchBehavior, votedFor
public PreLeader(RaftActorContext context)
public RaftActorBehavior handleMessage(akka.actor.ActorRef sender, Object message)
RaftActorBehavior
handleMessage
in interface RaftActorBehavior
handleMessage
in class AbstractLeader
sender
- The sender of the messagemessage
- A message that needs to be processedCopyright © 2019 OpenDaylight. All rights reserved.