X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2Fpolicy%2FRaftPolicy.java;h=c535c2299d5cbbefa1d128f7eb96ab8f725034f7;hp=a66caa456a45af5c2be4885f77749f9c0e49f824;hb=660c3e22ca97bc613ea6f6288503620bba6fb233;hpb=bf5c6f0a0b509b9f366be15433780d8fb8be1b84 diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/policy/RaftPolicy.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/policy/RaftPolicy.java index a66caa456a..c535c2299d 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/policy/RaftPolicy.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/policy/RaftPolicy.java @@ -13,7 +13,7 @@ package org.opendaylight.controller.cluster.raft.policy; * we may want to be able to determine which Raft replica should become the leader - with Raft elections are * randomized so it is not possible to specify which replica should be the leader. The ability to specify * the leader would be quite useful when testing a raft cluster. - * + *

* Similarly we may want to customize when exactly we apply a modification to the state - with Raft a modification * is only applied to the state when the modification is replicated to a majority of the replicas. The ability to * apply a modification to the state before consensus would be useful in scenarios where you have only 2 nodes @@ -31,10 +31,10 @@ public interface RaftPolicy { /** * 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 + * majority of it's followers. * * @return true if modification should be applied before consensus, false to apply modification to state - * as per Raft + * as per Raft */ boolean applyModificationToStateBeforeConsensus(); }