Migrate isFoo() callers
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / base / messages / Replicate.java
index a5381d5f22c06e8b539aba3f21f88a07629931d0..c58d86354a917d9fc968de3eff2b97ba6107d356 100644 (file)
@@ -9,21 +9,21 @@
 package org.opendaylight.controller.cluster.raft.base.messages;
 
 import akka.actor.ActorRef;
-import java.io.Serializable;
 import org.opendaylight.controller.cluster.raft.ReplicatedLogEntry;
 import org.opendaylight.yangtools.concepts.Identifier;
 
-public class Replicate implements Serializable {
-    private static final long serialVersionUID = 1L;
+public class Replicate {
     private final ActorRef clientActor;
     private final Identifier identifier;
     private final ReplicatedLogEntry replicatedLogEntry;
+    private final boolean sendImmediate;
 
-    public Replicate(ActorRef clientActor, Identifier identifier, ReplicatedLogEntry replicatedLogEntry) {
-
+    public Replicate(ActorRef clientActor, Identifier identifier, ReplicatedLogEntry replicatedLogEntry,
+            boolean sendImmediate) {
         this.clientActor = clientActor;
         this.identifier = identifier;
         this.replicatedLogEntry = replicatedLogEntry;
+        this.sendImmediate = sendImmediate;
     }
 
     public ActorRef getClientActor() {
@@ -37,4 +37,8 @@ public class Replicate implements Serializable {
     public ReplicatedLogEntry getReplicatedLogEntry() {
         return replicatedLogEntry;
     }
+
+    public boolean isSendImmediate() {
+        return sendImmediate;
+    }
 }