public final class EventSourceTopic extends Object implements DataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>, AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close() |
static EventSourceTopic |
create(NotificationPattern notificationPattern,
String nodeIdRegexPattern,
EventSourceTopology eventSourceTopology) |
Pattern |
getNodeIdRegexPattern() |
TopicId |
getTopicId() |
void |
notifyNode(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> nodeId) |
void |
onDataTreeChanged(Collection<DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> changes)
Invoked when there was data change for the supplied path, which was used
to register this listener.
|
public static EventSourceTopic create(NotificationPattern notificationPattern, String nodeIdRegexPattern, EventSourceTopology eventSourceTopology)
public TopicId getTopicId()
public void onDataTreeChanged(Collection<DataTreeModification<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>> changes)
DataTreeChangeListener
This method may be also invoked during registration of the listener if there is any pre-existing data in the conceptual data tree for supplied path. This initial event will contain all pre-existing data as created.
A data change event may be triggered spuriously, e.g. such that data before and after compare as equal. Implementations of this interface are expected to recover from such events. Event producers are expected to exert reasonable effort to suppress such events.
In other words, it is completely acceptable to observe
a DataObjectModification
, while the state observed before and
after- data items compare as equal.
onDataTreeChanged
in interface DataTreeChangeListener<org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node>
changes
- Collection of change events, may not be null or empty.public void notifyNode(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> nodeId)
public Pattern getNodeIdRegexPattern()
public void close()
close
in interface AutoCloseable
Copyright © 2019 OpenDaylight. All rights reserved.