2 * Copyright (c) 2014 Brocade Communications Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.controller.cluster.datastore.messages;
10 import org.opendaylight.controller.cluster.datastore.ShardDataTreeCohort;
11 import org.opendaylight.controller.cluster.datastore.modification.Modification;
14 * Transaction ReadyTransaction message that is forwarded to the local Shard from the ShardTransaction.
16 * @author Thomas Pantelis
18 public class ForwardedReadyTransaction {
19 private final String transactionID;
20 private final ShardDataTreeCohort cohort;
21 private final Modification modification;
22 private final boolean returnSerialized;
23 private final boolean doImmediateCommit;
24 private final short txnClientVersion;
26 public ForwardedReadyTransaction(String transactionID, short txnClientVersion,
27 ShardDataTreeCohort cohort, Modification modification,
28 boolean returnSerialized, boolean doImmediateCommit) {
29 this.transactionID = transactionID;
31 this.modification = modification;
32 this.returnSerialized = returnSerialized;
33 this.txnClientVersion = txnClientVersion;
34 this.doImmediateCommit = doImmediateCommit;
37 public String getTransactionID() {
41 public ShardDataTreeCohort getCohort() {
45 public Modification getModification() {
49 public boolean isReturnSerialized() {
50 return returnSerialized;
53 public short getTxnClientVersion() {
54 return txnClientVersion;
57 public boolean isDoImmediateCommit() {
58 return doImmediateCommit;