public interface TopicTreeListener
TopicTree
.
Use TopicTree.addTopicTreeListener(TopicTreeListener)
to add such a
listener and TopicTree.removeTopicTreeListener(TopicTreeListener)
to
remove.
Modifier and Type | Method and Description |
---|---|
void |
topicAdded(Topic topic)
Called whenever a new Topic is added.
|
void |
topicReferenceChanged(Topic topic)
Notified when a Topic's reference has been changed.
|
void |
topicRemoved(String topicName)
Called whenever a topic is removed.
|
void topicAdded(Topic topic)
Since 5.9 it is possible that this could be notified of the creation of a topic without having previously been notified of the addition of its parent (or ancestors). This could happen in the case of topics that are being created by the unified API which no longer need to have topics at their parent nodes. So publishers that do interact with topics that may have been created using the unified API may have to deal with this possibility.
topic
- the topic.void topicReferenceChanged(Topic topic)
topic
- the topic - the new reference may be obtained using
Topic.getReference()
.void topicRemoved(String topicName)
Note that the removal of all Topics subordinate to this Topic is implied and a notification will not be received for each one.
topicName
- the full hierarchic topic name.Copyright © 2016 Push Technology Ltd. All Rights Reserved.