Class HeliumNotificationProviderServiceWithInterestListeners
- java.lang.Object
-
- org.opendaylight.controller.md.sal.binding.compat.HeliumNotificationServiceAdapter
-
- org.opendaylight.controller.md.sal.binding.compat.HeliumNotificationProviderServiceAdapter
-
- org.opendaylight.controller.md.sal.binding.compat.HeliumNotificationProviderServiceWithInterestListeners
-
- All Implemented Interfaces:
AutoCloseable
,NotificationPublishService<Notification>
,BindingAwareService
,NotificationProviderService
,NotificationService
@Deprecated(forRemoval=true) public class HeliumNotificationProviderServiceWithInterestListeners extends HeliumNotificationProviderServiceAdapter
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.opendaylight.controller.sal.binding.api.NotificationProviderService
NotificationProviderService.NotificationInterestListener
-
-
Constructor Summary
Constructors Constructor Description HeliumNotificationProviderServiceWithInterestListeners(BindingDOMNotificationPublishServiceAdapter publishService, BindingDOMNotificationServiceAdapter listenService, DOMNotificationSubscriptionListenerRegistry registry)
Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
close()
Deprecated, for removal: This API element is subject to removal in a future version.ListenerRegistration<NotificationProviderService.NotificationInterestListener>
registerInterestListener(NotificationProviderService.NotificationInterestListener listener)
Deprecated, for removal: This API element is subject to removal in a future version.Registers a listener to be notified about notification subscriptions.<T extends Notification>
ListenerRegistration<NotificationListener<T>>registerNotificationListener(Class<T> type, NotificationListener<T> listener)
Deprecated, for removal: This API element is subject to removal in a future version.Registers a generic listener implementation for a specified notification type.-
Methods inherited from class org.opendaylight.controller.md.sal.binding.compat.HeliumNotificationProviderServiceAdapter
publish, publish
-
Methods inherited from class org.opendaylight.controller.md.sal.binding.compat.HeliumNotificationServiceAdapter
registerNotificationListener
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.controller.sal.binding.api.NotificationService
registerNotificationListener
-
-
-
-
Constructor Detail
-
HeliumNotificationProviderServiceWithInterestListeners
public HeliumNotificationProviderServiceWithInterestListeners(BindingDOMNotificationPublishServiceAdapter publishService, BindingDOMNotificationServiceAdapter listenService, DOMNotificationSubscriptionListenerRegistry registry)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
registerInterestListener
public ListenerRegistration<NotificationProviderService.NotificationInterestListener> registerInterestListener(NotificationProviderService.NotificationInterestListener listener)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:NotificationProviderService
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
NotificationProviderService.NotificationInterestListener.onNotificationSubscribtion(Class)
method will be invoked for every notification type that currently has a notification listener subscribed.- Specified by:
registerInterestListener
in interfaceNotificationProviderService
- Overrides:
registerInterestListener
in classHeliumNotificationProviderServiceAdapter
- Parameters:
listener
- the listener that will be notified when subscriptions for new notification types occur.- Returns:
- a
ListenerRegistration
instance that should be used to unregister the listener by invoking theListenerRegistration.close()
method when no longer needed.
-
registerNotificationListener
public <T extends Notification> ListenerRegistration<NotificationListener<T>> registerNotificationListener(Class<T> type, NotificationListener<T> listener)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:NotificationService
Registers a generic listener implementation for a specified notification type.- Specified by:
registerNotificationListener
in interfaceNotificationService
- Overrides:
registerNotificationListener
in classHeliumNotificationServiceAdapter
- Parameters:
type
- the YANG-generated interface of the notification type.listener
- the listener implementation that will receive notifications.- Returns:
- a
ListenerRegistration
instance that should be used to unregister the listener by invoking theListenerRegistration.close()
method when no longer needed.
-
close
public void close()
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
close
in interfaceAutoCloseable
- Overrides:
close
in classHeliumNotificationProviderServiceAdapter
-
-