Fix bug in ReplicatedLogImpl#removeFrom and use akka-persistence for removing entries
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / ElectionTerm.java
index 664ab5e7b29868014a8a913dc519313f90865de6..9c0a4fbffd5a03bf8e645e4d5aab9f72e66b507c 100644 (file)
@@ -38,4 +38,11 @@ public interface ElectionTerm {
      * @param votedFor
      */
     void update(long currentTerm, String votedFor);
+
+    /**
+     *
+     * @param currentTerm
+     * @param votedFor
+     */
+    void updateAndPersist(long currentTerm, String votedFor);
 }