X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2FReplicatedLogEntry.java;h=1348ffca9163adf786d4f715fce3ddf858605548;hb=4ecb8ecaf04594b3312a44d801423f515ea445b3;hp=a09a0a23ac40299bf917a7b220bb0aa2316d1141;hpb=c9943f5bc72d4cde9356d3bd4cf73d36f4b2f754;p=controller.git 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 a09a0a23ac..1348ffca91 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 @@ -41,4 +41,18 @@ public interface ReplicatedLogEntry { * @return the size of the entry in bytes. */ int size(); + + /** + * Checks if persistence is pending for this entry. + * + * @return true if persistence is pending, false otherwise. + */ + boolean isPersistencePending(); + + /** + * Sets whether or not persistence is pending for this entry. + * + * @param pending the new setting. + */ + void setPersistencePending(boolean pending); }