BUG 2762 : Compute rate limit based on a more lenient algorithm
[controller.git] / opendaylight / md-sal / sal-distributed-datastore / src / main / java / org / opendaylight / controller / cluster / datastore / AbstractTransactionContext.java
1 /*
2  * Copyright (c) 2015 Cisco 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;
9
10 import com.google.common.collect.Lists;
11 import java.util.List;
12 import org.opendaylight.controller.cluster.datastore.identifiers.TransactionIdentifier;
13 import scala.concurrent.Future;
14
15 abstract class AbstractTransactionContext implements TransactionContext {
16
17     protected final TransactionIdentifier identifier;
18     protected final List<Future<Object>> recordedOperationFutures = Lists.newArrayList();
19
20     AbstractTransactionContext(TransactionIdentifier identifier) {
21         this.identifier = identifier;
22     }
23
24     @Override
25     public List<Future<Object>> getRecordedOperationFutures() {
26         return recordedOperationFutures;
27     }
28 }