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%2Fsal%2Fbinding%2Fapi%2FNotificationProviderService.java;h=ac2bb6477696cd25083edecf7ff2a74de0b381ab;hp=00db80c19f7fd3fc9399dd303df74f7987eb2ce7;hb=aaea3e9a92ae9d6fac04c4a065db4b35cbca9ed0;hpb=7d753ff9887cb803bdcd222aec2ab2a0a9c87906 diff --git a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/NotificationProviderService.java b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/NotificationProviderService.java index 00db80c19f..ac2bb64776 100644 --- a/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/NotificationProviderService.java +++ b/opendaylight/md-sal/sal-binding-api/src/main/java/org/opendaylight/controller/sal/binding/api/NotificationProviderService.java @@ -9,7 +9,6 @@ package org.opendaylight.controller.sal.binding.api; import java.util.EventListener; import java.util.concurrent.ExecutorService; - import org.opendaylight.controller.md.sal.common.api.notify.NotificationPublishService; import org.opendaylight.yangtools.concepts.ListenerRegistration; import org.opendaylight.yangtools.yang.binding.Notification; @@ -18,18 +17,15 @@ import org.opendaylight.yangtools.yang.binding.Notification; * Interface for a notification service that provides publish/subscribe capabilities for YANG * modeled notifications. This interface is a combination of the {@link NotificationService} and * {@link NotificationPublishService} interfaces. + * + * @deprecated Please use {@link org.opendaylight.mdsal.binding.api.NotificationPublishService}. */ +@Deprecated(forRemoval = true) public interface NotificationProviderService extends NotificationService, NotificationPublishService { - /** - * {@inheritDoc} - */ @Override - public void publish(Notification notification); + void publish(Notification notification); - /** - * {@inheritDoc} - */ @Override void publish(Notification notification, ExecutorService executor); @@ -37,6 +33,7 @@ public interface NotificationProviderService extends NotificationService, Notifi * Registers a listener to be notified about notification subscriptions. This * enables a component to know when there is a notification listener subscribed * for a particular notification type. + * *

* On registration of this listener, the * {@link NotificationInterestListener#onNotificationSubscribtion(Class)} method @@ -54,15 +51,16 @@ public interface NotificationProviderService extends NotificationService, Notifi /** * Interface for a listener interested in being notified about notification subscriptions. */ - public interface NotificationInterestListener extends EventListener { + interface NotificationInterestListener extends EventListener { /** - * Callback that is invoked when a notification listener subscribes for a - * particular notification type. + * Callback that is invoked when a notification listener subscribes for a particular notification type. + * *

* This method is only called for the first subscription that occurs for a * particular notification type. Subsequent subscriptions for the same * notification type do not trigger invocation of this method. + * *

* Note:This callback is delivered from thread not owned by this listener, * all processing should be as fast as possible and implementations should