Diffusion Apple API
5.9.24
Unified Client Library for iOS, OS X and tvOS
|
The specification of a topic.
A topic is specified in terms of its topic type and a map of optional property settings which can alter the default behavior of the topic.
Class Methods | |
(NSString *) | + publishValuesOnlyPropertyKey |
(NSString *) | + validateValuesPropertyKey |
(NSString *) | + truePropertyValue |
Properties | |
PTDiffusionTopicType | type |
NSDictionary< NSString *, NSString * > * | properties |
Instance Methods | |
(BOOL) | - isEqualToTopicSpecification: |
- (BOOL) isEqualToTopicSpecification: | (nullable PTDiffusionTopicSpecification *) | topicSpecification |
Compares the receiver to the given topic specification.
topicSpecification | The topic specification object with which to compare the receiver. |
YES
if the topic specification is equal to the receiver, otherwise NO
.+ (NSString *) publishValuesOnlyPropertyKey |
Key of boolean topic property indicating whether a topic should publish only values.
By default, topics with a topic data type that supports deltas will publish a delta when doing so is more efficient than publishing the value. Setting this property to "true" disables this behavior so that deltas are never published. This results in more data being transmitted, but allows the client to only have to process values and not deltas.
If this property is not set (or set to something other than "true") and a topic publishes deltas, clients need to use value streams to process the topics. If a client uses topic streams, it needs to process the deltas manually.
If the client is using value streams to process the topics, it is not recommended to set this property as it will only lead to higher bandwidth usage.
For topic data types that do not have delta support this value is irrelevant as only values would ever be published anyway.
+ (NSString *) truePropertyValue |
Constant string representing the value to be used for boolean properties to represent "true".
+ (NSString *) validateValuesPropertyKey |
Key of boolean topic property indicating whether a topic should validate inbound values.
By default, the server does not validate received values before sending them on to clients. Invalid or corrupt values will be stored in the topic and passed on to clients. If this property is set to "true", the server will perform additional validation on values to check that it is a valid instance of the data type, and if it is not then it will return an error to the updater and not update the topic.
If this value is not set (or set to something other than "true"), no server validation of inbound values is performed. This is the recommended setting as there is a performance overhead to validation and a client using a value updater could not send invalid values anyway.
|
readnonatomicassign |
The topic properties. May be empty.
|
readnonatomicassign |
The type of topic.