@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)
NotificationService
NotificationListener
. The listener is registered for all notifications present in
the implemented interface.
registerNotificationListener
in interface NotificationService
T
- 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 AutoCloseable
Exception
public DOMNotificationService getDomService()
Copyright © 2019 OpenDaylight. All rights reserved.