Removed unused Modification field in ForwardedReadyTransaction
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / messages / ForwardedReadyTransaction.java
1 /*
2  * Copyright (c) 2014 Brocade Communications Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.cluster.datastore.messages;
9
10 import org.opendaylight.controller.cluster.datastore.ShardDataTreeCohort;
11
12 /**
13  * Transaction ReadyTransaction message that is forwarded to the local Shard from the ShardTransaction.
14  *
15  * @author Thomas Pantelis
16  */
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;
23
24     public ForwardedReadyTransaction(String transactionID, short txnClientVersion,
25             ShardDataTreeCohort cohort, boolean returnSerialized,
26             boolean doImmediateCommit) {
27         this.transactionID = transactionID;
28         this.cohort = cohort;
29         this.returnSerialized = returnSerialized;
30         this.txnClientVersion = txnClientVersion;
31         this.doImmediateCommit = doImmediateCommit;
32     }
33
34     public String getTransactionID() {
35         return transactionID;
36     }
37
38     public ShardDataTreeCohort getCohort() {
39         return cohort;
40     }
41
42     public boolean isReturnSerialized() {
43         return returnSerialized;
44     }
45
46     public short getTxnClientVersion() {
47         return txnClientVersion;
48     }
49
50     public boolean isDoImmediateCommit() {
51         return doImmediateCommit;
52     }
53 }