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=40fd3dd5620944edf6186fe21ac77c8f6a2dfffb;hp=6d6ea17a3564508b131c398bccd99541a84dc5df;hb=3ec97cd0a86ad1b79f6854dc6924eb7b06e359a3;hpb=f1a918f69b787dd422a09e4e8fd83a1d52a72f83 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 6d6ea17a35..40fd3dd562 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 @@ -9,19 +9,21 @@ package org.opendaylight.controller.md.sal.binding.api; import java.util.Collection; import java.util.EventListener; -import javax.annotation.Nonnull; +import org.eclipse.jdt.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 + * data tree changes. This interface 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}. + * + * @deprecated Use {@link org.opendaylight.mdsal.binding.api.DataTreeChangeListener} instead. */ +@Deprecated public interface DataTreeChangeListener extends EventListener { /** * Invoked when there was data change for the supplied path, which was used @@ -45,5 +47,5 @@ public interface DataTreeChangeListener extends EventListe * * @param changes Collection of change events, may not be null or empty. */ - void onDataTreeChanged(@Nonnull Collection> changes); + void onDataTreeChanged(@NonNull Collection> changes); }