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.mdsal.common.api.LogicalDatastoreType;
13 import org.opendaylight.mdsal.dom.spi.store.DOMStoreTransactionFactory;
14 import org.opendaylight.mdsal.dom.spi.store.DOMStoreWriteTransaction;
16 public class DOMBrokerWriteOnlyTransaction extends AbstractDOMBrokerWriteTransaction<DOMStoreWriteTransaction> {
19 * Constructs an instance.
21 * @param identifier identifier of transaction.
22 * @param storeTxFactories the backing transaction store factories
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();