99b2000cd3fb1930ea4dba8dfdcdf87ca5842c61
[mdsal.git] / binding2 / mdsal-binding2-api / src / main / java / org / opendaylight / mdsal / binding / javav2 / api / Transaction.java
1 /*
2  * Copyright (c) 2018 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 org.opendaylight.mdsal.binding.javav2.spec.base.InstanceIdentifier;
11 import org.opendaylight.mdsal.binding.javav2.spec.base.TreeNode;
12 import org.opendaylight.mdsal.common.api.AsyncTransaction;
13
14 /**
15  * A common parent for all transactions which operate on a conceptual data tree.
16  * See derived transaction types for more concrete behavior:
17  * <ul>
18  * <li>{@link ReadTransaction} - Read capabilities, user is able to read data from data tree</li>
19  * <li>{@link WriteTransaction} - Write capabilities, user is able to propose changes to data tree</li>
20  * </ul>
21  *
22  * <b>Implementation Note:</b> This interface is not intended to be implemented by users of MD-SAL.
23  */
24 public interface Transaction extends AsyncTransaction<InstanceIdentifier<?>, TreeNode> {
25     @Override
26     Object getIdentifier();
27 }