2 * Copyright (c) 2015 Huawei Technologies Co. Ltd. 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
9 package org.opendaylight.controller.cluster.databroker;
12 import org.opendaylight.controller.md.sal.common.api.data.LogicalDatastoreType;
13 import org.opendaylight.controller.sal.core.spi.data.DOMStoreTransactionFactory;
14 import org.opendaylight.controller.sal.core.spi.data.DOMStoreWriteTransaction;
16 public class DOMBrokerWriteOnlyTransaction extends AbstractDOMBrokerWriteTransaction<DOMStoreWriteTransaction> {
18 * Creates new composite Transactions.
21 * Identifier of transaction.
22 * @param storeTxFactories
24 public DOMBrokerWriteOnlyTransaction(Object identifier,
25 Map<LogicalDatastoreType, ? extends DOMStoreTransactionFactory> storeTxFactories,
26 AbstractDOMTransactionFactory<?> commitImpl) {
27 super(identifier, storeTxFactories, commitImpl);
31 protected DOMStoreWriteTransaction createTransaction(LogicalDatastoreType key) {
32 return getTxFactory(key).newWriteOnlyTransaction();