public class TwoNodeClusterRaftPolicy extends Object implements RaftPolicy
Constructor and Description |
---|
TwoNodeClusterRaftPolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
applyModificationToStateBeforeConsensus()
According to Raft consensus on a Raft entry is achieved only after a Leader replicates a log entry to a
majority of it's followers.
|
boolean |
automaticElectionsEnabled()
According to Raft a Follower which does not receive a heartbeat (aka AppendEntries) in a given period should
become a Candidate and trigger an election.
|
public boolean automaticElectionsEnabled()
RaftPolicy
automaticElectionsEnabled
in interface RaftPolicy
public boolean applyModificationToStateBeforeConsensus()
RaftPolicy
applyModificationToStateBeforeConsensus
in interface RaftPolicy
Copyright © 2019 OpenDaylight. All rights reserved.