Update DOMStoreThreePhaseCommitCohort design
[mdsal.git] / dom / mdsal-dom-spi / src / main / java / org / opendaylight / mdsal / dom / spi / store / DOMStoreWriteTransaction.java
index ca88ab25b9bd88ec24dd685cf134a31c7fb5ecac..6005ea553246d16077146dfe2d39146fd5c9b85a 100644 (file)
@@ -16,35 +16,33 @@ public interface DOMStoreWriteTransaction extends DOMStoreTransaction {
      * Store a provided data at specified path. This acts as a add / replace operation, which is to
      * say that whole subtree will be replaced by specified path.
      *
+     * <p>
      * If you need add or merge of current object with specified use
      * {@link #merge(YangInstanceIdentifier, NormalizedNode)}
      *
-     *
-     * @param path
+     * @param path YangInstanceIdentifier object to be written
      * @param data Data object to be written
-     *
      * @throws IllegalStateException if the client code already sealed transaction and invoked
      *         {@link #ready()}
      */
-    void write(YangInstanceIdentifier path, NormalizedNode<?, ?> data);
+    void write(YangInstanceIdentifier path, NormalizedNode data);
 
     /**
      * Store a provided data at specified path. This acts as a add / replace operation, which is to
      * say that whole subtree will be replaced by specified path.
      *
+     * <p>
      * If you need add or merge of current object with specified use
      * {@link #merge(YangInstanceIdentifier, NormalizedNode)}
      *
-     * @param path
+     * @param path YangInstanceIdentifier object to be merged
      * @param data Data object to be written
-     *
      * @throws IllegalStateException if the client code already sealed transaction and invoked
      *         {@link #ready()}
      */
-    void merge(YangInstanceIdentifier path, NormalizedNode<?, ?> data);
+    void merge(YangInstanceIdentifier path, NormalizedNode data);
 
     /**
-     *
      * Deletes data and whole subtree located at provided path.
      *
      * @param path
@@ -56,7 +54,6 @@ public interface DOMStoreWriteTransaction extends DOMStoreTransaction {
     void delete(YangInstanceIdentifier path);
 
     /**
-     *
      * Seals transaction, and returns three-phase commit cohort associated
      * with this transaction and DOM Store to be coordinated by coordinator.
      *