import java.util.Collection;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.mdsal.dom.api.DOMDataTreeIdentifier;
+import org.opendaylight.yangtools.concepts.Registration;
@Beta
-public interface DOMDataTreeShardProducer {
+public interface DOMDataTreeShardProducer extends Registration {
/**
* Return the collection of tree identifiers to which this producer is bound. This collection
* is constant during the lifetime of a producer.
* @throws IllegalStateException if a previous transaction has not been closed
*/
@NonNull DOMDataTreeShardWriteTransaction createTransaction();
+
+ /**
+ * Close this producer, releasing all resources. Default implementation does nothing, implementations should provide
+ * an implementation.
+ */
+ // FIXME: 4.0.0: make this method non-default
+ @Override
+ default void close() {
+
+ }
}