X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2FReplicatedLogEntry.java;h=1bced2404dea9161ae64dc2f0cee0d37e0a2d677;hp=f501c4d37f1f864c7a0551c119403d2b76457d1d;hb=5e590ea1548dd4974ca59f1318a11f2a8651c3b7;hpb=6d73d16b194435ea1ea783a37d1b51fc1f558a1f diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ReplicatedLogEntry.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ReplicatedLogEntry.java index f501c4d37f..1bced2404d 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ReplicatedLogEntry.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/ReplicatedLogEntry.java @@ -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(); }