Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix warnings and javadocs in sal-akka-raft
[controller.git]
/
opendaylight
/
md-sal
/
sal-akka-raft
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
cluster
/
raft
/
ReplicatedLogEntry.java
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 1bced2404dea9161ae64dc2f0cee0d37e0a2d677..a09a0a23ac40299bf917a7b220bb0aa2316d1141 100644
(file)
--- 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
@@
-11,30
+11,34
@@
package org.opendaylight.controller.cluster.raft;
import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload;
/**
import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload;
/**
- * Represents one entry in the replicated log
+ * Represents one entry in the replicated log
.
*/
public interface ReplicatedLogEntry {
/**
*/
public interface ReplicatedLogEntry {
/**
+ * Returns the payload/data to be replicated.
*
*
- * @return
The payload/data to be replicated
+ * @return
the payload/data
*/
Payload getData();
/**
*/
Payload getData();
/**
+ * Returns the term of the entry.
*
*
- * @return
The term of the entry
+ * @return
the term
*/
long getTerm();
/**
*/
long getTerm();
/**
+ * Returns the index of the entry.
*
*
- * @return
The index of the entry
+ * @return
the index
*/
long getIndex();
/**
*/
long getIndex();
/**
+ * Returns the size of the entry in bytes. An approximate number may be good enough.
*
*
- * @return
The size of the entry in bytes. An approximate number may be good enough
.
+ * @return
the size of the entry in bytes
.
*/
int size();
}
*/
int size();
}