X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmessages%2FCanCommitTransactionReply.java;h=6b88b96ca6ac7f2363647fe8189aa5537bdb2ef7;hp=d2cf5fde7e5191dab033a7a1c1e0808a9eb35132;hb=dd16edd5a758f0e51727de511f9868c72b2a1dd0;hpb=a34394fe997afab8f52e1e5177eeaa38a0e4ddec;ds=sidebyside diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CanCommitTransactionReply.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CanCommitTransactionReply.java index d2cf5fde7e..6b88b96ca6 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CanCommitTransactionReply.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CanCommitTransactionReply.java @@ -20,9 +20,11 @@ public class CanCommitTransactionReply extends VersionedExternalizableMessage { private static final CanCommitTransactionReply NO = new CanCommitTransactionReply(false, DataStoreVersions.CURRENT_VERSION); + @Deprecated private static final ThreePhaseCommitCohortMessages.CanCommitTransactionReply YES_SERIALIZED = ThreePhaseCommitCohortMessages.CanCommitTransactionReply.newBuilder().setCanCommit(true).build(); + @Deprecated private static final ThreePhaseCommitCohortMessages.CanCommitTransactionReply NO_SERIALIZED = ThreePhaseCommitCohortMessages.CanCommitTransactionReply.newBuilder().setCanCommit(false).build(); @@ -52,6 +54,7 @@ public class CanCommitTransactionReply extends VersionedExternalizableMessage { out.writeBoolean(canCommit); } + @Deprecated @Override protected Object newLegacySerializedInstance() { return canCommit ? YES_SERIALIZED : NO_SERIALIZED;