Class HeliumNotificationServiceAdapter
- java.lang.Object
-
- org.opendaylight.controller.md.sal.binding.compat.HeliumNotificationServiceAdapter
-
- All Implemented Interfaces:
AutoCloseable
,BindingAwareService
,NotificationService
- Direct Known Subclasses:
HeliumNotificationProviderServiceAdapter
@Deprecated(forRemoval=true) public class HeliumNotificationServiceAdapter extends Object implements NotificationService, AutoCloseable
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Summary
Constructors Constructor Description HeliumNotificationServiceAdapter(NotificationService notificationService)
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.<T extends Notification>
ListenerRegistration<NotificationListener<T>>registerNotificationListener(Class<T> notificationType, 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.ListenerRegistration<NotificationListener>
registerNotificationListener(NotificationListener listener)
Deprecated, for removal: This API element is subject to removal in a future version.Registers a listener which implements a YANG-generated notification interface derived fromNotificationListener
.
-
-
-
Constructor Detail
-
HeliumNotificationServiceAdapter
public HeliumNotificationServiceAdapter(NotificationService notificationService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Detail
-
registerNotificationListener
public <T extends Notification> ListenerRegistration<NotificationListener<T>> registerNotificationListener(Class<T> notificationType, 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
- Parameters:
notificationType
- 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.
-
registerNotificationListener
public ListenerRegistration<NotificationListener> registerNotificationListener(NotificationListener listener)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:NotificationService
Registers a listener which implements a YANG-generated notification interface derived fromNotificationListener
. The listener is registered for all notifications present in the implemented interface.- Specified by:
registerNotificationListener
in interfaceNotificationService
- Parameters:
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() throws Exception
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-