Merge "BUG-8: mark deprecated classes as such"
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / FollowerLogInformation.java
index 5f185cbb9c872efe200522c3b93b554623157dd7..4d2bad5c2effe1f55a7abb3e74786e30390abaab 100644 (file)
@@ -21,12 +21,26 @@ public interface FollowerLogInformation {
      */
     public long incrNextIndex();
 
+    /**
+     * Decrement the value of the nextIndex
+     * @return
+     */
+    public long decrNextIndex();
+
+    /**
+     *
+     * @param nextIndex
+     */
+    void setNextIndex(long nextIndex);
+
     /**
      * Increment the value of the matchIndex
      * @return
      */
     public long incrMatchIndex();
 
+    public void setMatchIndex(long matchIndex);
+
     /**
      * The identifier of the follower
      * This could simply be the url of the remote actor
@@ -47,5 +61,21 @@ public interface FollowerLogInformation {
      */
     public AtomicLong getMatchIndex();
 
+    /**
+     * Checks if the follower is active by comparing the last updated with the duration
+     * @return boolean
+     */
+    public boolean isFollowerActive();
+
+    /**
+     * restarts the timeout clock of the follower
+     */
+    public void markFollowerActive();
+
+    /**
+     * This will stop the timeout clock
+     */
+    public void markFollowerInActive();
+
 
 }