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