@Beta public class BindingDOMNotificationServiceAdapter extends Object implements NotificationService, AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static BindingDOMAdapterBuilder.Factory<NotificationService> |
BUILDER_FACTORY |
| Constructor and Description |
|---|
BindingDOMNotificationServiceAdapter(BindingNormalizedNodeSerializer codec,
DOMNotificationService domNotifService) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DOMNotificationService |
getDomService()
Get DOM notification service.
|
<T extends NotificationListener> |
registerNotificationListener(T listener)
Registers a listener which implements a YANG-generated notification interface derived from
NotificationListener. |
public static final BindingDOMAdapterBuilder.Factory<NotificationService> BUILDER_FACTORY
public BindingDOMNotificationServiceAdapter(BindingNormalizedNodeSerializer codec, DOMNotificationService domNotifService)
public <T extends NotificationListener> org.opendaylight.yangtools.concepts.ListenerRegistration<T> registerNotificationListener(T listener)
NotificationServiceNotificationListener. The listener is registered for all notifications present in
the implemented interface.
registerNotificationListener in interface NotificationServiceT - listener typelistener - 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 AutoCloseableExceptionpublic DOMNotificationService getDomService()
Copyright © 2018 OpenDaylight. All rights reserved.