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%2FForwardedReadyTransaction.java;h=2f48ab9d1be137562f170d354e7580b74e6b7da6;hp=38886c9a583c500e4fc9b86f54422c001482e777;hb=53090b106117e873f6a69a04290ee3bdb2cdf975;hpb=bc9665899219b2218abd8a9bee314cd07f0f84d0 diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/ForwardedReadyTransaction.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/ForwardedReadyTransaction.java index 38886c9a58..2f48ab9d1b 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/ForwardedReadyTransaction.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/messages/ForwardedReadyTransaction.java @@ -7,8 +7,8 @@ */ package org.opendaylight.controller.cluster.datastore.messages; +import org.opendaylight.controller.cluster.datastore.ShardDataTreeCohort; import org.opendaylight.controller.cluster.datastore.modification.Modification; -import org.opendaylight.controller.sal.core.spi.data.DOMStoreThreePhaseCommitCohort; /** * Transaction ReadyTransaction message that is forwarded to the local Shard from the ShardTransaction. @@ -17,26 +17,28 @@ import org.opendaylight.controller.sal.core.spi.data.DOMStoreThreePhaseCommitCoh */ public class ForwardedReadyTransaction { private final String transactionID; - private final DOMStoreThreePhaseCommitCohort cohort; + private final ShardDataTreeCohort cohort; private final Modification modification; private final boolean returnSerialized; - private final int txnClientVersion; + private final boolean doImmediateCommit; + private final short txnClientVersion; - public ForwardedReadyTransaction(String transactionID, int txnClientVersion, - DOMStoreThreePhaseCommitCohort cohort, Modification modification, - boolean returnSerialized) { + public ForwardedReadyTransaction(String transactionID, short txnClientVersion, + ShardDataTreeCohort cohort, Modification modification, + boolean returnSerialized, boolean doImmediateCommit) { this.transactionID = transactionID; this.cohort = cohort; this.modification = modification; this.returnSerialized = returnSerialized; this.txnClientVersion = txnClientVersion; + this.doImmediateCommit = doImmediateCommit; } public String getTransactionID() { return transactionID; } - public DOMStoreThreePhaseCommitCohort getCohort() { + public ShardDataTreeCohort getCohort() { return cohort; } @@ -48,7 +50,11 @@ public class ForwardedReadyTransaction { return returnSerialized; } - public int getTxnClientVersion() { + public short getTxnClientVersion() { return txnClientVersion; } + + public boolean isDoImmediateCommit() { + return doImmediateCommit; + } }