+import static java.util.Objects.requireNonNull;
+
+import com.google.common.io.ByteSource;
+import org.eclipse.jdt.annotation.NonNull;
+import org.opendaylight.controller.cluster.raft.persisted.Snapshot;
+
+/**
+ * Internal message sent from the SnapshotManager to its associated leader when a snapshot capture is complete to
+ * prompt the leader to install the snapshot on its followers as needed.
+ */
+public final class SendInstallSnapshot {
+ private final @NonNull Snapshot snapshot;
+ private final @NonNull ByteSource snapshotBytes;
+
+ public SendInstallSnapshot(@NonNull Snapshot snapshot, @NonNull ByteSource snapshotBytes) {
+ this.snapshot = requireNonNull(snapshot);
+ this.snapshotBytes = requireNonNull(snapshotBytes);
+ }
+
+ public @NonNull Snapshot getSnapshot() {
+ return snapshot;
+ }