2 * Copyright (c) 2017 Pantheon Technologies s.r.o. 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.mdsal.binding.javav2.api;
10 import com.google.common.annotations.Beta;
11 import org.opendaylight.mdsal.binding.javav2.spec.base.InstanceIdentifier;
12 import org.opendaylight.mdsal.binding.javav2.spec.base.TreeNode;
13 import org.opendaylight.mdsal.common.api.AsyncDataTransactionFactory;
16 * A factory which allocates new transactions to operate on the data tree.
19 * For more information on usage, please see the documentation in {@link AsyncDataTransactionFactory}.
21 * @see AsyncDataTransactionFactory
24 public interface TransactionFactory extends AsyncDataTransactionFactory<InstanceIdentifier<?>, TreeNode> {
26 ReadTransaction newReadOnlyTransaction();
29 WriteTransaction newWriteOnlyTransaction();