X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmessages%2FCloseTransactionReply.java;h=549a27475978aca4278fa45922bbd5a93e1fe7f9;hb=4e3f49788c05730b29468deebc2aaa4ed0d94eef;hp=1c47a1827f11f86f26ee13c2d81237adcdd55f6b;hpb=85a4118a6fe51d8571a1e7bb398d954e4ceddd33;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CloseTransactionReply.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CloseTransactionReply.java index 1c47a1827f..549a274759 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CloseTransactionReply.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CloseTransactionReply.java @@ -8,19 +8,15 @@ package org.opendaylight.controller.cluster.datastore.messages; -import org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages; +public class CloseTransactionReply extends VersionedExternalizableMessage { + private static final long serialVersionUID = 1L; -public class CloseTransactionReply implements SerializableMessage { - public static final Class SERIALIZABLE_CLASS = - ShardTransactionMessages.CloseTransactionReply.class; - - private static final Object SERIALIZED_INSTANCE = - ShardTransactionMessages.CloseTransactionReply.newBuilder().build(); - - public static final CloseTransactionReply INSTANCE = new CloseTransactionReply(); + public CloseTransactionReply() { + } @Override - public Object toSerializable() { - return SERIALIZED_INSTANCE; + protected Object newLegacySerializedInstance() { + // no legacy serialized type for this class; return self + return this; } }