X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fapi%2FDOMDataTreeShardingService.java;h=fea4cdd61afb772afa7af450e6af0fec2d6873a6;hp=c087224090ec5779f64833388af42379f14b612a;hb=0b161730fd648bfa4c953e84b2d6a66972bc4da2;hpb=32b25203819eb02df22abfecdcc86896c068f778 diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMDataTreeShardingService.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMDataTreeShardingService.java index c087224090..fea4cdd61a 100644 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMDataTreeShardingService.java +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMDataTreeShardingService.java @@ -16,14 +16,19 @@ import org.opendaylight.yangtools.concepts.ListenerRegistration; * single {@link DOMDataTreeIdentifier}. Based on those data tree identifiers, the * shards are organized in a tree, where there is a logical parent/child relationship. * + *

* It is not allowed to attach two shards to the same data tree identifier, which means * the mapping of each piece of information has an unambiguous home. When accessing * the information, the shard with the longest matching data tree identifier is used, * which is why this interface treats it is a prefix. * + *

* Whenever a parent/child relationship is changed, the parent is notified, so it can * understand that a logical child has been attached. + * + * @deprecated Use {@link org.opendaylight.mdsal.dom.api.DOMDataTreeShardingService} instead. */ +@Deprecated public interface DOMDataTreeShardingService extends DOMService { /** * Register a shard as responsible for a particular subtree prefix. @@ -33,5 +38,6 @@ public interface DOMDataTreeShardingService extends DOMService { * @return A registration. To remove the shard's binding, close the registration. * @throws DOMDataTreeShardingConflictException if the prefix is already bound */ - @Nonnull ListenerRegistration registerDataTreeShard(@Nonnull DOMDataTreeIdentifier prefix, @Nonnull T shard) throws DOMDataTreeShardingConflictException; + @Nonnull ListenerRegistration registerDataTreeShard( + @Nonnull DOMDataTreeIdentifier prefix, @Nonnull T shard) throws DOMDataTreeShardingConflictException; }