Bug 6587: Retain state when transitioning between Leader and IsolatedLeader
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / ReplicatedLogEntry.java
index f501c4d37f1f864c7a0551c119403d2b76457d1d..1bced2404dea9161ae64dc2f0cee0d37e0a2d677 100644 (file)
@@ -15,23 +15,26 @@ import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payloa
  */
 public interface ReplicatedLogEntry {
     /**
-     * The data stored in that entry
      *
-     * @return
+     * @return The payload/data to be replicated
      */
     Payload getData();
 
     /**
-     * The term stored in that entry
      *
-     * @return
+     * @return The term of the entry
      */
     long getTerm();
 
     /**
-     * The index of the entry
      *
-     * @return
+     * @return The index of the entry
      */
     long getIndex();
+
+    /**
+     *
+     * @return The size of the entry in bytes. An approximate number may be good enough.
+     */
+    int size();
 }