Bug 5419: Persist log entries asycnhronously
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / ReplicatedLogEntry.java
index a09a0a23ac40299bf917a7b220bb0aa2316d1141..1348ffca9163adf786d4f715fce3ddf858605548 100644 (file)
@@ -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);
 }