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%2FCommitTransactionReply.java;h=47adea5ea0305678de89c8b11c4c87a6ea91bedc;hb=85a4118a6fe51d8571a1e7bb398d954e4ceddd33;hp=5751b71037ba84e97a68834c8e28a1399e7c1d36;hpb=d7ce7c5acee7e6f7cd7895ceff5af63ac53789ad;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CommitTransactionReply.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CommitTransactionReply.java index 5751b71037..47adea5ea0 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CommitTransactionReply.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/CommitTransactionReply.java @@ -11,11 +11,16 @@ package org.opendaylight.controller.cluster.datastore.messages; import org.opendaylight.controller.protobuff.messages.cohort3pc.ThreePhaseCommitCohortMessages; public class CommitTransactionReply implements SerializableMessage { + public static final Class SERIALIZABLE_CLASS = + ThreePhaseCommitCohortMessages.CommitTransactionReply.class; - public static final Class SERIALIZABLE_CLASS = ThreePhaseCommitCohortMessages.CommitTransactionReply.class; + private static final Object SERIALIZED_INSTANCE = + ThreePhaseCommitCohortMessages.CommitTransactionReply.newBuilder().build(); - @Override - public Object toSerializable() { - return ThreePhaseCommitCohortMessages.CommitTransactionReply.newBuilder().build(); - } + public static final CommitTransactionReply INSTANCE = new CommitTransactionReply(); + + @Override + public Object toSerializable() { + return SERIALIZED_INSTANCE; + } }