public class DefaultRaftPolicy extends Object implements RaftPolicy
Modifier and Type | Field and Description |
---|---|
static RaftPolicy |
INSTANCE |
Constructor and Description |
---|
DefaultRaftPolicy() |
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 static final RaftPolicy INSTANCE
public boolean automaticElectionsEnabled()
RaftPolicy
automaticElectionsEnabled
in interface RaftPolicy
public boolean applyModificationToStateBeforeConsensus()
RaftPolicy
applyModificationToStateBeforeConsensus
in interface RaftPolicy
Copyright © 2019 OpenDaylight. All rights reserved.