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 f3de9835385eb0880bb567402f5bb493f8ad3a76..4d2bad5c2effe1f55a7abb3e74786e30390abaab 100644 (file)
@@ -61,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();
+
 
 }