public interface SlaveTopicData extends TopicData
This type of Topic Data is a virtual topic data instance which points to another 'real' data instance (the 'master' data). It effectively allows topic data to be shared across more than one topic. If master data is updated then the data for all slave topics is thus automatically updated. When an update is done to the master data it will also appear as an update to all of its slaves. If a topic is removed that has topic data which is pointed at by instances of SlaveTopicData then all such slave topics are also automatically removed.
From release 5.5, slave topics can no longer be updated directly.
SlaveTopicData now extends TopicData
, rather than
PublishingTopicData
.
Modifier and Type | Method and Description |
---|---|
PublishingTopicData |
getMaster()
Deprecated.
since 5.7.
This method will only return the master data if it is an
instance of |
Topic |
getMasterTopic()
Returns the master topic.
|
getDeltaEncoding, getLoadEncoding, getLoadMessage, getLoadMessage, getTopic, getType, hasSubscribers, isCommand, isLockedByCurrentThread, isPaged, isPublishing, isRouting, isService, lock, setDeltaEncoding, setLoadEncoding, unlock
@Deprecated PublishingTopicData getMaster()
This method will only return the master data if it is an
instance of PublishingTopicData
. However, it is now
possible for a slave topic to point to a topic that has
UniversalTopicData
therefore in order to discover the
master topic getMasterTopic()
should be used.
PublishingTopicData
.Topic getMasterTopic()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.