Bug 3570: Use SnapShot lastAppliedIndex for install snapshot
[controller.git] / opendaylight / md-sal / sal-akka-raft / src / main / java / org / opendaylight / controller / cluster / raft / base / messages / SendInstallSnapshot.java
index 83c85d9135a773541b40889ecf81453d9607833b..21c65e6037c106135f995323ae10b238029879eb 100644 (file)
@@ -8,16 +8,16 @@
 
 package org.opendaylight.controller.cluster.raft.base.messages;
 
-import com.google.protobuf.ByteString;
+import org.opendaylight.controller.cluster.raft.Snapshot;
 
 public class SendInstallSnapshot {
-    private ByteString snapshot;
+    private final Snapshot snapshot;
 
-    public SendInstallSnapshot(ByteString snapshot) {
+    public SendInstallSnapshot(Snapshot snapshot) {
         this.snapshot = snapshot;
     }
 
-    public ByteString getSnapshot() {
+    public Snapshot getSnapshot() {
         return snapshot;
     }
 }