import java.io.IOException;
import java.io.OutputStream;
import java.util.Optional;
import java.io.IOException;
import java.io.OutputStream;
import java.util.Optional;
-import javax.annotation.Nonnull;
-import org.opendaylight.controller.cluster.raft.persisted.Snapshot;
+import org.eclipse.jdt.annotation.NonNull;
+import org.opendaylight.controller.cluster.raft.persisted.Snapshot.State;
* serialized data back to a State instance on the follower end. The serialization for snapshot install is
* passed off so the cost of serialization is not charged to the raft actor's thread.
*/
* serialized data back to a State instance on the follower end. The serialization for snapshot install is
* passed off so the cost of serialization is not charged to the raft actor's thread.
*/
/**
* This method is called to apply a snapshot installed by the leader.
*
* @param snapshotState a snapshot of the state of the actor
*/
/**
* This method is called to apply a snapshot installed by the leader.
*
* @param snapshotState a snapshot of the state of the actor
*/
* @return the converted snapshot State
* @throws IOException if an error occurs accessing the ByteSource or de-serializing
*/
* @return the converted snapshot State
* @throws IOException if an error occurs accessing the ByteSource or de-serializing
*/