public class HeliumNotificationServiceAdapter extends Object implements NotificationService, AutoCloseable
Constructor and Description |
---|
HeliumNotificationServiceAdapter(NotificationService notificationService) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<T extends org.opendaylight.yangtools.yang.binding.Notification> |
registerNotificationListener(Class<T> notificationType,
NotificationListener<T> listener)
Registers a generic listener implementation for a specified notification type.
|
org.opendaylight.yangtools.concepts.ListenerRegistration<org.opendaylight.yangtools.yang.binding.NotificationListener> |
registerNotificationListener(org.opendaylight.yangtools.yang.binding.NotificationListener listener)
Registers a listener which implements a YANG-generated notification interface derived from
NotificationListener . |
public HeliumNotificationServiceAdapter(NotificationService notificationService)
public <T extends org.opendaylight.yangtools.yang.binding.Notification> org.opendaylight.yangtools.concepts.ListenerRegistration<NotificationListener<T>> registerNotificationListener(Class<T> notificationType, NotificationListener<T> listener)
NotificationService
registerNotificationListener
in interface NotificationService
notificationType
- the YANG-generated interface of the notification type.listener
- the listener implementation that will receive notifications.ListenerRegistration
instance that should be used to unregister the listener
by invoking the ListenerRegistration.close()
method when no longer needed.public org.opendaylight.yangtools.concepts.ListenerRegistration<org.opendaylight.yangtools.yang.binding.NotificationListener> registerNotificationListener(org.opendaylight.yangtools.yang.binding.NotificationListener listener)
NotificationService
NotificationListener
.
The listener is registered for all notifications present in the implemented interface.registerNotificationListener
in interface NotificationService
listener
- the listener implementation that will receive notifications.ListenerRegistration
instance that should be used to unregister the listener
by invoking the ListenerRegistration.close()
method when no longer needed.public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2019 OpenDaylight. All rights reserved.