- private final DOMStoreThreePhaseCommitCohort cohort;
- private final Modification modification;
- private final boolean returnSerialized;
-
- public ForwardedReadyTransaction(String transactionID, DOMStoreThreePhaseCommitCohort cohort,
- Modification modification, boolean returnSerialized) {
- this.transactionID = transactionID;
- this.cohort = cohort;
- this.modification = modification;
- this.returnSerialized = returnSerialized;
-
+ private final ReadWriteShardDataTreeTransaction transaction;
+ private final boolean doImmediateCommit;
+ private final short txnClientVersion;
+
+ public ForwardedReadyTransaction(String transactionID, short txnClientVersion,
+ ReadWriteShardDataTreeTransaction transaction, boolean doImmediateCommit) {
+ this.transactionID = Preconditions.checkNotNull(transactionID);
+ this.transaction = Preconditions.checkNotNull(transaction);
+ this.txnClientVersion = txnClientVersion;
+ this.doImmediateCommit = doImmediateCommit;