@Beta @NonNullByDefault public interface DOMActionAvailabilityExtension extends DOMActionServiceExtension
DOMActionServiceExtension
exposed by DOMActionService
s which allow their users to listen
for actions are becoming available.Modifier and Type | Interface and Description |
---|---|
static interface |
DOMActionAvailabilityExtension.AvailabilityListener
An
EventListener used to track Operation implementations becoming (un)available
to a DOMActionService . |
Modifier and Type | Method and Description |
---|---|
<T extends DOMActionAvailabilityExtension.AvailabilityListener> |
registerAvailabilityListener(T listener)
Register a
DOMActionAvailabilityExtension.AvailabilityListener with this service to receive notifications about operation
implementations becoming (un)available. |
<T extends DOMActionAvailabilityExtension.AvailabilityListener> org.opendaylight.yangtools.concepts.ListenerRegistration<T> registerAvailabilityListener(T listener)
DOMActionAvailabilityExtension.AvailabilityListener
with this service to receive notifications about operation
implementations becoming (un)available. The listener will be invoked with the current implementations reported
and will be kept uptodate as implementations come and go.
Users should note that using a listener does not necessarily mean that
DOMActionService.invokeAction(SchemaPath, DOMDataTreeIdentifier, ContainerNode)
will not report
a failure due to DOMActionNotAvailableException
and need to be ready to handle it.
Implementations are encouraged to take reasonable precautions to prevent this scenario from occurring.
listener
- DOMActionAvailabilityExtension.AvailabilityListener
instance to registerListenerRegistration
representing this registration. Performing a
ListenerRegistration.close()
will cancel it.NullPointerException
- if listener
is nullCopyright © 2019 OpenDaylight. All rights reserved.