X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fsal%2Fbinding%2Fapi%2FNotificationListener.java;h=e5a0a2bd6dda74aa8565757f2acea4679bbb1300;hb=2727bea09c83646b6cbd2ef9672d0b7f6cf3b22f;hp=9429d3f8fa33372dedbbc8b0a00201db695d99a9;hpb=b1ad47e987f7e73ebcd44f2076f57550715f75d6;p=controller.git diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/NotificationListener.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/NotificationListener.java index 9429d3f8fa..e5a0a2bd6d 100644 --- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/NotificationListener.java +++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/NotificationListener.java @@ -8,24 +8,25 @@ package org.opendaylight.controller.sal.binding.api; import java.util.EventListener; - import org.opendaylight.yangtools.yang.binding.Notification; /** - * Interface implemented by objects interested in some sort of Notification. This - * class acts as a base interface for specific listeners which usually are a type + * Interface for a generic listener that is interested in receiving YANG modeled notifications. + * This interface acts as a base interface for specific listeners which usually are a type * capture of this interface. * - * @param Notification type + * @param the interested notification type + * @deprecated Deprecated unused API. */ +@Deprecated public interface NotificationListener extends EventListener { /** - * Invoked to deliver the notification. Note that this method may be invoked - * from a shared thread pool, so implementations SHOULD NOT perform CPU-intensive - * operations and they definitely MUST NOT invoke any potentially blocking - * operations. + * Invoked to deliver a notification. + *

+ * Note that this method may be invoked from a shared thread pool, so implementations SHOULD NOT + * perform CPU-intensive operations and MUST NOT invoke any potentially blocking operations. * - * @param notification Notification being delivered. + * @param notification the notification. */ void onNotification(T notification); }