X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-dom-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fdom%2Fapi%2FDOMDataTreeChangeListener.java;h=53ced96400b0b15f39fa2ac848033f5c9086ecad;hb=e38f06caf5cf5d4b4861315b42fecf7842b4ec05;hp=257879070d22ad160d702714a5dd23ebcb0108b1;hpb=c31509c7a6630e54a9f9749a643fed5e1a1ad380;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMDataTreeChangeListener.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMDataTreeChangeListener.java index 257879070d..53ced96400 100644 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMDataTreeChangeListener.java +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/md/sal/dom/api/DOMDataTreeChangeListener.java @@ -9,14 +9,17 @@ package org.opendaylight.controller.md.sal.dom.api; import java.util.Collection; import java.util.EventListener; -import javax.annotation.Nonnull; +import org.eclipse.jdt.annotation.NonNull; import org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidate; /** * Interface implemented by classes interested in receiving notifications about - * data tree changes. This interface differs from {@link DOMDataChangeListener} - * in that it provides a cursor-based view of the change, which has potentially + * data tree changes. This interface provides a cursor-based view of the change, which has potentially * lower overhead. + * + *

+ * Note: this interface enables notifications only at the leader of the data store, if clustered. If you want + * notifications on all instances in a cluster, use the {@link ClusteredDOMDataTreeChangeListener}. */ public interface DOMDataTreeChangeListener extends EventListener { /** @@ -34,6 +37,7 @@ public interface DOMDataTreeChangeListener extends EventListener { * to recover from such events. Event producers are expected to exert reasonable * effort to suppress such events. * + *

* In other words, it is completely acceptable to observe * a {@link org.opendaylight.yangtools.yang.data.api.schema.tree.DataTreeCandidateNode}, * which reports a {@link org.opendaylight.yangtools.yang.data.api.schema.tree.ModificationType} @@ -42,5 +46,5 @@ public interface DOMDataTreeChangeListener extends EventListener { * * @param changes Collection of change events, may not be null or empty. */ - void onDataTreeChanged(@Nonnull Collection changes); + void onDataTreeChanged(@NonNull Collection changes); }