BUG-1092: adjust to YangInstanceIdentifier
[controller.git] / opendaylight / md-sal / sal-dom-api / src / main / java / org / opendaylight / controller / md / sal / dom / api / DOMTransactionChain.java
1 /*
2  * Copyright (c) 2014 Cisco Systems, Inc. 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.controller.md.sal.dom.api;
9
10 import org.opendaylight.controller.md.sal.common.api.data.TransactionChain;
11 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
12 import org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode;
13
14 /**
15  * A chain of DOM Data transactions.
16  *
17  * Transactions in a chain need to be committed in sequence and each
18  * transaction should see the effects of previous transactions as if they happened. A chain
19  * makes no guarantees of atomicity, in fact transactions are committed as soon as possible.
20  *
21  * <p>
22  * This interface is type capture of {@link TransactionChain} for DOM Data Contracts.
23  */
24 public interface DOMTransactionChain extends TransactionChain<YangInstanceIdentifier, NormalizedNode<?, ?>> {
25
26     @Override
27     DOMDataReadOnlyTransaction newReadOnlyTransaction();
28
29     @Override
30     DOMDataReadWriteTransaction newReadWriteTransaction();
31
32     @Override
33     DOMDataWriteTransaction newWriteOnlyTransaction();
34
35 }

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.