package org.opendaylight.controller.cluster.raft;
+import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload;
+
/**
* Represents one entry in the replicated log
*/
*
* @return
*/
- Object getData();
+ Payload getData();
/**
* The term stored in that entry
* @return
*/
long getIndex();
+
+ /**
+ * The size of the entry in bytes.
+ *
+ * An approximate number may be good enough.
+ *
+ * @return
+ */
+ int size();
}