BUG 5979 - enforce cursors are closed on transaction submit
[mdsal.git] / dom / mdsal-dom-inmemory-datastore / src / main / java / org / opendaylight / mdsal / dom / store / inmemory / DOMDataTreeShardWriteTransaction.java
index 9689057b6bcbf23aea82cf4eea58be0b03d09b5a..b457ddb49171c6acb7a89da7c1baed437f05e598 100644 (file)
@@ -36,6 +36,11 @@ public interface DOMDataTreeShardWriteTransaction {
      */
     void ready();
 
+    /**
+     * Close this transaction and all other foreign shard transactions that were opened as a part of this transaction.
+     */
+    void close();
+
     ListenableFuture<Void> submit();
 
     //FIXME: remove these from the public api?