X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-akka-raft%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fraft%2FRaftActorRecoveryCohort.java;h=4df0e7b58b5eb4aff84a03ac21f4865987b7c264;hb=53fe636c7e44c4dcd98ec7d4c3dc23553a9144f4;hp=f948769c9cf9f015200b5ce51d213b0296255240;hpb=aafb8cb044e992dd784d1f4f66508599cc4cd588;p=controller.git diff --git a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorRecoveryCohort.java b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorRecoveryCohort.java index f948769c9c..4df0e7b58b 100644 --- a/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorRecoveryCohort.java +++ b/opendaylight/md-sal/sal-akka-raft/src/main/java/org/opendaylight/controller/cluster/raft/RaftActorRecoveryCohort.java @@ -7,10 +7,9 @@ */ package org.opendaylight.controller.cluster.raft; -import javax.annotation.Nonnull; -import javax.annotation.Nullable; +import org.eclipse.jdt.annotation.Nullable; +import org.opendaylight.controller.cluster.raft.messages.Payload; import org.opendaylight.controller.cluster.raft.persisted.Snapshot; -import org.opendaylight.controller.cluster.raft.protobuff.client.messages.Payload; /** * Interface for a class that participates in raft actor persistence recovery. @@ -53,16 +52,5 @@ public interface RaftActorRecoveryCohort { * * @return the snapshot or null if there's no snapshot to restore */ - @Nullable - Snapshot getRestoreFromSnapshot(); - - /** - * This method is called during recovery to de-serialize a snapshot that was persisted in the pre-Carbon format. - * - * @param from the snaphot bytes - * @return a Snapshot.State instance - */ - @Deprecated - @Nonnull - Snapshot.State deserializePreCarbonSnapshot(byte [] from); + @Nullable Snapshot getRestoreFromSnapshot(); }