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%2FCloseTransactionReply.java;h=1c47a1827f11f86f26ee13c2d81237adcdd55f6b;hp=666d182aaff24c9e3d7a8da86a5de061dc4e0999;hb=cad857b425b1a0072681066b2ba37b0b0dc8c111;hpb=516a4b2ea78179c9bd6ebb584862e8fc686ebf08 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 666d182aaf..1c47a1827f 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 @@ -11,9 +11,16 @@ package org.opendaylight.controller.cluster.datastore.messages; import org.opendaylight.controller.protobuff.messages.transaction.ShardTransactionMessages; public class CloseTransactionReply implements SerializableMessage { - public static final Class SERIALIZABLE_CLASS = ShardTransactionMessages.CloseTransactionReply.class; - @Override - public Object toSerializable() { - return ShardTransactionMessages.CloseTransactionReply.newBuilder().build(); - } + 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(); + + @Override + public Object toSerializable() { + return SERIALIZED_INSTANCE; + } }