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%2FReadyLocalTransaction.java;h=f8cd18ced20deb245c5e0e1f56b0dcba1b891cb6;hb=2f7c93174d7834a4c4aedacc9b88aa53a5a0422c;hp=6d952f9a4a324e05cbfa2b2d5bc87ff49e1d0a14;hpb=cdecfd5299a982077802da22c3e3a1cbf7de9045;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/ReadyLocalTransaction.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/ReadyLocalTransaction.java index 6d952f9a4a..f8cd18ced2 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/ReadyLocalTransaction.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/ReadyLocalTransaction.java @@ -13,14 +13,16 @@ import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeModification /** * Message notifying the shard leader to apply modifications which have been * prepared locally against its DataTree. This message is not directly serializable, - * simply because the leader and sender need to be on the same system. + * simply because the leader and sender need to be on the same system. When it needs + * to be sent out to a remote system, it needs to be intercepted by {@link ReadyLocalTransactionSerializer} + * and turned into {@link BatchedModifications}. */ public final class ReadyLocalTransaction { private final DataTreeModification modification; private final String transactionID; private final boolean doCommitOnReady; - public ReadyLocalTransaction(final String transactionID, DataTreeModification modification, boolean doCommitOnReady) { + public ReadyLocalTransaction(final String transactionID, final DataTreeModification modification, final boolean doCommitOnReady) { this.transactionID = Preconditions.checkNotNull(transactionID); this.modification = Preconditions.checkNotNull(modification); this.doCommitOnReady = doCommitOnReady;