aa9f5708d2150bb0775a71c3445504e597070865
[mdsal.git] / binding2 / mdsal-binding2-api / src / main / java / org / opendaylight / mdsal / binding / javav2 / api / TransactionFactory.java
1 /*
2  * Copyright (c) 2017 Pantheon Technologies s.r.o. 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.mdsal.binding.javav2.api;
9
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;
14
15 /**
16  * A factory which allocates new transactions to operate on the data tree.
17  *
18  * <p>
19  * For more information on usage, please see the documentation in {@link AsyncDataTransactionFactory}.
20  *
21  * @see AsyncDataTransactionFactory
22  */
23 @Beta
24 public interface TransactionFactory extends AsyncDataTransactionFactory<InstanceIdentifier<?>, TreeNode> {
25     @Override
26     ReadTransaction newReadOnlyTransaction();
27
28     @Override
29     WriteTransaction newWriteOnlyTransaction();
30 }