Deprecate old MD-SAL APIs for removal
[controller.git] / opendaylight / md-sal / sal-common-api / src / main / java / org / opendaylight / controller / md / sal / common / api / data / AsyncTransaction.java
index 23ca275ef20ef24a710b39d5f06ff96fa9ca00ce..50b0798f8ddfd91bb3cf3297ce1c091ee4075d28 100644 (file)
@@ -12,22 +12,27 @@ import org.opendaylight.yangtools.concepts.Path;
 
 
 /**
+ * A common parent for all transactions which operate on a conceptual data tree.
  *
- * @author
+ * <p>
+ * See derived transaction types for more concrete behavior:
+ * <ul>
+ * <li>{@link AsyncReadTransaction} - Read capabilities, user is able to read data from data tree</li>
+ * <li>{@link AsyncWriteTransaction} - Write capabilities, user is able to propose changes to data tree</li>
+ * <li>{@link AsyncReadWriteTransaction} - Read and Write capabilities, user is able to read state and to propose
+ *     changes of state.</li>
+ * </ul>
+ *
+ * <b>Implementation Note:</b> This interface is not intended to be implemented
+ * by users of MD-SAL.
  *
  * @param <P> Type of path (subtree identifier), which represents location in tree
  * @param <D> Type of data (payload), which represents data payload
  */
+@Deprecated(forRemoval = true)
 public interface AsyncTransaction<P extends Path<P>,D> extends //
-    Identifiable<Object>,
-    AutoCloseable {
-
-    @Override
-    public Object getIdentifier();
+    Identifiable<Object> {
 
-    /**
-     * Closes transaction and releases all resources associated with it.
-     */
     @Override
-    public void close();
+    Object getIdentifier();
 }