public static interface TopicNotifyTopicDetails.Builder extends TopicDetails.Builder<TopicNotifyTopicDetails.Builder,TopicNotifyTopicDetails>
Modifier and Type | Method and Description |
---|---|
TopicNotifyTopicDetails.Builder |
cacheMetadata(boolean cache)
Sets the 'metadata caching' option.
|
build, property, reference, reset, tidyOnUnsubscribe
TopicNotifyTopicDetails.Builder cacheMetadata(boolean cache)
If not explicitly set, it is assumed that metadata caching is used therefore this only needs to be called to turn the option off in situations where metadata names are not unique.
cache
- indicates whether the topic is to support metadata
caching. 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 notificationsCopyright © 2016 Push Technology Ltd. All Rights Reserved.