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%2Fsal%2Fcore%2Fapi%2Fnotify%2FNotificationPublishService.java;h=4f5c7abf5f1bb560ea2b1d5d1b57982cfc700f4a;hb=1e12c13aaec75493f70dd759208181f45c385102;hp=652eab10a75e6e4091e934d5f226ba18d181b2fd;hpb=a251833f27fd00040904e2df316cd707c8129d1e;p=controller.git diff --git a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/notify/NotificationPublishService.java b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/notify/NotificationPublishService.java index 652eab10a7..4f5c7abf5f 100644 --- a/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/notify/NotificationPublishService.java +++ b/opendaylight/md-sal/sal-dom-api/src/main/java/org/opendaylight/controller/sal/core/api/notify/NotificationPublishService.java @@ -7,42 +7,33 @@ */ package org.opendaylight.controller.sal.core.api.notify; -import org.opendaylight.controller.sal.core.api.Broker; -import org.opendaylight.controller.sal.core.api.Provider; +import org.opendaylight.controller.md.sal.dom.api.DOMService; import org.opendaylight.yangtools.yang.data.api.CompositeNode; - /** * Notification Publishing Service - * + * * The simplified process of the notification publishing is following: - * + * *
    - *
  1. {@link Provider} invokes {@link #sendNotification(CompositeNode)} - *
  2. {@link Broker} finds {@link NotificationListener}s which subscribed for + *
  3. {@link org.opendaylight.controller.sal.core.api.Provider} invokes {@link #sendNotification(CompositeNode)} + *
  4. {@link org.opendaylight.controller.sal.core.api.Broker} finds {@link NotificationListener}s which subscribed for * the notification type. - * - *
  5. For each subscriber {@link Broker} invokes + * + *
  6. For each subscriber {@link org.opendaylight.controller.sal.core.api.Broker} invokes * {@link NotificationListener#onNotification(CompositeNode)} *
- * - * - * */ -public interface NotificationPublishService extends NotificationService { - +public interface NotificationPublishService extends NotificationService, DOMService { /** * Publishes a notification. - * + * * Notification type is determined by the * {@link CompositeNode#getNodeType()} of the * notification parameter. - * + * * @param notification * Notification to publish */ - @Deprecated - void sendNotification(CompositeNode notification); - void publish(CompositeNode notification); }