This topic type will be removed in a future release
@Deprecated public interface TopicNotifyTopicData extends CommandTopicData
An instance of this type of data can be created using
TopicDataFactory.newTopicNotifyData(boolean)
.
Clients may subscribe to a Topic of this type and a Java client (of type
ServerConnection
)
may use it using the
TopicNotifyTopicHandler
interface. Other client types may have similar
handler capabilities otherwise they would have to use the raw documented
protocol for such a Topic type (see user manual - protocol section).
Modifier and Type | Field and Description |
---|---|
static int |
PROTOCOL_VERSION
Deprecated.
The version of the Topic Notify protocol.
|
Modifier and Type | Method and Description |
---|---|
boolean |
cachesMetadata()
Deprecated.
Indicates whether the Topic Data is supporting metadata caching.
|
boolean |
notifiesAllTopics()
Deprecated.
Indicates whether the notifier will notify all Topic creations or only
those which are owned by the same Publisher as the notifying Topic.
|
void |
setNotifyAllTopics(boolean all)
Deprecated.
Sets the 'notify all topics' option.
|
getDeltaEncoding, getLoadEncoding, getLoadMessage, getLoadMessage, getTopic, getType, hasSubscribers, isCommand, isLockedByCurrentThread, isPaged, isPublishing, isRouting, isService, lock, setDeltaEncoding, setLoadEncoding, unlock
static final int PROTOCOL_VERSION
boolean cachesMetadata()
Whether caching is supported may be specified when creating the topic data.
Caching can significantly improve performance and reduce bandwidth
required for notifications from such a Topic but it can only be used if
all instances of
metadata
used by Topics that get notified (potentially all) have unique
names
. Using caching when names are not unique can lead to incorrect
metadata notifications.
boolean notifiesAllTopics()
void setNotifyAllTopics(boolean all)
By default only the addition of Topics that are owned by the same publisher as the one owning the notifying Topic will be notified. This option would allow all Topics to be notified.
all
- true to notify all topicsCopyright © 2016 Push Technology Ltd. All Rights Reserved.