X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fapi%2FDataTreeChangeListener.java;h=d52835b7ed090dc4972b83b366ae859c35899997;hp=6b1df719ac672f12c24bbe167b9094772ed9c4a9;hb=11e16facd8ba32e307d634b6da13160d57597cce;hpb=e3a6c5a5d4af2476c3736c8f0e8735d2ae7b7dfc diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/DataTreeChangeListener.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/DataTreeChangeListener.java index 6b1df719ac..d52835b7ed 100644 --- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/DataTreeChangeListener.java +++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/md/sal/binding/api/DataTreeChangeListener.java @@ -10,14 +10,18 @@ package org.opendaylight.controller.md.sal.binding.api; import java.util.Collection; import java.util.EventListener; import javax.annotation.Nonnull; +import org.opendaylight.yangtools.yang.binding.DataObject; /** * Interface implemented by classes interested in receiving notifications about * data tree changes. This interface differs from {@link DataChangeListener} * in that it provides a cursor-based view of the change, which has potentially * lower overhead and allow more flexible consumption of change event. + *

+ * 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 ClusteredDataTreeChangeListener}. */ -public interface DataTreeChangeListener extends EventListener { +public interface DataTreeChangeListener extends EventListener { /** * Invoked when there was data change for the supplied path, which was used * to register this listener. @@ -39,5 +43,5 @@ public interface DataTreeChangeListener extends EventListener { * * @param changes Collection of change events, may not be null or empty. */ - void onDataTreeChanged(@Nonnull Collection changes); + void onDataTreeChanged(@Nonnull Collection> changes); }