*/
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
*/
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();
+
}