public class BindingDOMNotificationServiceAdapter extends Object implements NotificationService, AutoCloseable
Modifier and Type | Field and Description |
---|---|
static org.opendaylight.controller.md.sal.binding.impl.BindingDOMAdapterBuilder.Factory<NotificationService> |
BUILDER_FACTORY |
Constructor and Description |
---|
BindingDOMNotificationServiceAdapter(org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer codec,
DOMNotificationService domNotifService) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
DOMNotificationService |
getDomService() |
<T extends org.opendaylight.yangtools.yang.binding.NotificationListener> |
registerNotificationListener(T listener)
Registers a listener which implements a YANG-generated notification interface derived from
NotificationListener . |
public static final org.opendaylight.controller.md.sal.binding.impl.BindingDOMAdapterBuilder.Factory<NotificationService> BUILDER_FACTORY
public BindingDOMNotificationServiceAdapter(org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer codec, DOMNotificationService domNotifService)
public <T extends org.opendaylight.yangtools.yang.binding.NotificationListener> org.opendaylight.yangtools.concepts.ListenerRegistration<T> registerNotificationListener(T 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()
close
in interface AutoCloseable
public DOMNotificationService getDomService()
Copyright © 2019 OpenDaylight. All rights reserved.