public interface TopicTree extends TopicTreeNode
NAME_DELIMITER
Modifier and Type | Method and Description |
---|---|
boolean |
addTopicDeletionListener(TopicDeletionListener listener)
Adds a listener for Topic deletions.
|
boolean |
addTopicTreeListener(TopicTreeListener listener)
Add a listener for Topic events.
|
Topic |
getTopic(String topicName)
Gets a Topic.
|
boolean |
removeTopicDeletionListener(TopicDeletionListener listener)
Removes a Topic deletion listener.
|
boolean |
removeTopicTreeListener(TopicTreeListener listener)
Removes a listener for Topic events.
|
equals, getAllTopics, getLevel, getNodeName, getParent, getRoot, getTopics, getTopics, getTopics, getTopics, getTopics, hashCode, hasTopic, hasTopics, isAutoSubscribing, isRoot, isTopic, remove, removeTopic, setAutoSubscribe
Topic getTopic(String topicName)
The name may be a simple Topic name or a full hierarchic Topic name with
each element of the name separated by TopicTreeNode.NAME_DELIMITER
.
This overrides the superclass method to provide a fast lookup facility from the root of the Topic tree.
getTopic
in interface TopicTreeNode
topicName
- the name of a top level topic or the full hierarchic
name of a descendant Topic.boolean addTopicTreeListener(TopicTreeListener listener)
listener
- the listenerboolean removeTopicTreeListener(TopicTreeListener listener)
listener
- the listenerboolean addTopicDeletionListener(TopicDeletionListener listener)
Such a listener would be notified of all Topic removals, in contrast to a
TopicTreeListener
which is only notified of the removal of the
top level topic in a Topic hierarchy.
listener
- the listenerboolean removeTopicDeletionListener(TopicDeletionListener listener)
listener
- the listener to removeCopyright © 2016 Push Technology Ltd. All Rights Reserved.