Add LeaderTransitioning message to RaftActor
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / base / messages / SendInstallSnapshot.java
index 6c3313f316623c10fcdf7468e1181d5941044201..21c65e6037c106135f995323ae10b238029879eb 100644 (file)
@@ -8,7 +8,16 @@
 
 package org.opendaylight.controller.cluster.raft.base.messages;
 
-import java.io.Serializable;
+import org.opendaylight.controller.cluster.raft.Snapshot;
 
-public class SendInstallSnapshot implements Serializable {
+public class SendInstallSnapshot {
+    private final Snapshot snapshot;
+
+    public SendInstallSnapshot(Snapshot snapshot) {
+        this.snapshot = snapshot;
+    }
+
+    public Snapshot getSnapshot() {
+        return snapshot;
+    }
 }