public interface DOMNotificationService extends DOMService
DOMService
which allows its users to subscribe to receive
DOMNotification
s.Modifier and Type | Method and Description |
---|---|
<T extends DOMNotificationListener> |
registerNotificationListener(T listener,
@NonNull Collection<org.opendaylight.yangtools.yang.model.api.SchemaPath> types)
Register a
DOMNotificationListener to receive a set of notifications. |
<T extends DOMNotificationListener> |
registerNotificationListener(T listener,
org.opendaylight.yangtools.yang.model.api.SchemaPath... types)
Register a
DOMNotificationListener to receive a set of notifications. |
<T extends DOMNotificationListener> org.opendaylight.yangtools.concepts.ListenerRegistration<T> registerNotificationListener(T listener, @NonNull Collection<org.opendaylight.yangtools.yang.model.api.SchemaPath> types)
DOMNotificationListener
to receive a set of notifications. As with other
ListenerRegistration-based interfaces, registering an instance multiple times results in
notifications being delivered for each registration.listener
- Notification instance to registertypes
- Notification types which should be delivered to the listener. Duplicate entries
are processed only once, null entries are ignored.ListenerRegistration.close()
will stop the
delivery of notifications to the listenerIllegalArgumentException
- if types is empty or contains an invalid element, such as
null or a SchemaPath which does not represent a valid DOMNotification
type.NullPointerException
- if either of the arguments is null<T extends DOMNotificationListener> org.opendaylight.yangtools.concepts.ListenerRegistration<T> registerNotificationListener(T listener, org.opendaylight.yangtools.yang.model.api.SchemaPath... types)
DOMNotificationListener
to receive a set of notifications. As with other
ListenerRegistration-based interfaces, registering an instance multiple times results in
notifications being delivered for each registration.listener
- Notification instance to registertypes
- Notification types which should be delivered to the listener. Duplicate entries
are processed only once, null entries are ignored.ListenerRegistration.close()
will stop the
delivery of notifications to the listenerIllegalArgumentException
- if types is empty or contains an invalid element, such as
null or a SchemaPath which does not represent a valid DOMNotification
type.NullPointerException
- if listener is nullCopyright © 2019 OpenDaylight. All rights reserved.