Fix testLeaderAndFollowerEntityOwnersReassignedAfterShutdown failure
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / policy / RaftPolicy.java
index a66caa456a45af5c2be4885f77749f9c0e49f824..183e3400e6379db1e7aa66407cafc2c4a323301e 100644 (file)
@@ -14,11 +14,11 @@ package org.opendaylight.controller.cluster.raft.policy;
  * 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.
  *
+ * <p>
  * 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
  * in a Raft cluster and one of them is down but you still want the RaftActor to apply a modification to the state.
- *
  */
 public interface RaftPolicy {
     /**
@@ -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();
 }