X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2Fmessages%2FCloseTransactionChainReply.java;h=b4673e8a08042668105091223b7723844037edd7;hb=ff0ca2ab34a016be25fc13fc05bfbd6aa698cee0;hp=c001ae185a6dc9641f08f2440d7825624936cb1d;hpb=e316a0ef36279a72767703d190f38a39d7d49395;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CloseTransactionChainReply.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CloseTransactionChainReply.java index c001ae185a..b4673e8a08 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CloseTransactionChainReply.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CloseTransactionChainReply.java @@ -11,11 +11,16 @@ package org.opendaylight.controller.cluster.datastore.messages; import org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionChainMessages; public class CloseTransactionChainReply implements SerializableMessage { - public static final Class SERIALIZABLE_CLASS = - ShardTransactionChainMessages.CloseTransactionChainReply.class; - @Override - public Object toSerializable() { - return ShardTransactionChainMessages.CloseTransactionChainReply.newBuilder().build(); - } + public static final Class SERIALIZABLE_CLASS = + ShardTransactionChainMessages.CloseTransactionChainReply.class; + private static final Object SERIALIZED_INSTANCE = + ShardTransactionChainMessages.CloseTransactionChainReply.newBuilder().build(); + + public static final CloseTransactionChainReply INSTANCE = new CloseTransactionChainReply(); + + @Override + public Object toSerializable() { + return SERIALIZED_INSTANCE; + } }