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%2FNotificationProviderService.java;h=64aab6ec0c76c782de761fd1413f02d0e84d15f1;hb=95de79c585ef60c7b92eaf795df8f3b6d5eaf56a;hp=7052ab0c45a2440e19b63a16bdbcd8c1cc78f7e0;hpb=1d4c378f053c756606336730cd05a1fd2e41caab;p=mdsal.git 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 7052ab0c45..64aab6ec0c 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,11 +9,29 @@ package org.opendaylight.controller.sal.binding.api; import java.util.concurrent.ExecutorService; +import org.opendaylight.controller.md.sal.common.api.notify.NotificationPublishService; +import org.opendaylight.yangtools.concepts.Registration; import org.opendaylight.yangtools.yang.binding.Notification; -public interface NotificationProviderService extends NotificationService { +public interface NotificationProviderService extends NotificationService, NotificationPublishService { + @Deprecated void notify(Notification notification); - + + @Deprecated void notify(Notification notification, ExecutorService service); + + @Override + void publish(Notification notification); + + @Override + void publish(Notification notification, ExecutorService service); + + @Override + public Registration> registerNotificationListener( + Class notificationType, NotificationListener listener); + + @Override + public Registration registerNotificationListener( + org.opendaylight.yangtools.yang.binding.NotificationListener listener); }