Merge "Fix checkstyle warnings in netty-event-executor-config."
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / ReplicatedLogEntry.java
index 3bbaa2283836fb24bd221a14d21bb7e250dfa14e..19796097364f3a2d321b11edb281834055f97a16 100644 (file)
@@ -8,6 +8,8 @@
 
 package org.opendaylight.controller.cluster.raft;
 
+import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload;
+
 /**
  * Represents one entry in the replicated log
  */
@@ -17,7 +19,7 @@ public interface ReplicatedLogEntry {
      *
      * @return
      */
-    Object getData();
+    Payload getData();
 
     /**
      * The term stored in that entry
@@ -32,4 +34,13 @@ public interface ReplicatedLogEntry {
      * @return
      */
     long getIndex();
+
+    /**
+     * The size of the entry in bytes.
+     *
+     * An approximate number may be good enough.
+     *
+     * @return
+     */
+    int size();
 }