Binding v2 runtime - adapters - impl - operations
[mdsal.git] / binding2 / mdsal-binding2-api / src / main / java / org / opendaylight / mdsal / binding / javav2 / api / DataBroker.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
9 package org.opendaylight.mdsal.binding.javav2.api;
10
11 import com.google.common.annotations.Beta;
12 import org.opendaylight.mdsal.binding.javav2.spec.base.InstanceIdentifier;
13 import org.opendaylight.mdsal.binding.javav2.spec.base.TreeNode;
14 import org.opendaylight.mdsal.common.api.AsyncDataBroker;
15 import org.opendaylight.mdsal.common.api.TransactionChainFactory;
16 import org.opendaylight.mdsal.common.api.TransactionChainListener;
17
18 /**
19  * Provides access to a conceptual data tree store and also provides the ability to
20  * subscribe for changes to data under a given branch of the tree.
21  *
22  * <p>
23  * For more information on usage, please see the documentation in {@link AsyncDataBroker}.
24  *
25  * @see AsyncDataBroker
26  * @see TransactionChainFactory
27  */
28 @Beta
29 public interface DataBroker extends AsyncDataBroker<InstanceIdentifier<?>, TreeNode>, BindingService,
30         TransactionFactory, DataTreeService, TransactionChainFactory<InstanceIdentifier<?>, TreeNode> {
31
32     @Override
33     ReadTransaction newReadOnlyTransaction();
34
35     @Override
36     WriteTransaction newWriteOnlyTransaction();
37
38     @Override
39     BindingTransactionChain createTransactionChain(TransactionChainListener listener);
40 }