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;
13 * Transaction ReadyTransaction message that is forwarded to the local Shard from the ShardTransaction.
15 * @author Thomas Pantelis
17 public class ForwardedReadyTransaction {
18 private final String transactionID;
19 private final ShardDataTreeCohort cohort;
20 private final boolean returnSerialized;
21 private final boolean doImmediateCommit;
22 private final short txnClientVersion;
24 public ForwardedReadyTransaction(String transactionID, short txnClientVersion,
25 ShardDataTreeCohort cohort, boolean returnSerialized,
26 boolean doImmediateCommit) {
27 this.transactionID = transactionID;
29 this.returnSerialized = returnSerialized;
30 this.txnClientVersion = txnClientVersion;
31 this.doImmediateCommit = doImmediateCommit;
34 public String getTransactionID() {
38 public ShardDataTreeCohort getCohort() {
42 public boolean isReturnSerialized() {
43 return returnSerialized;
46 public short getTxnClientVersion() {
47 return txnClientVersion;
50 public boolean isDoImmediateCommit() {
51 return doImmediateCommit;