Diffusion Apple API  6.1.5
Unified Client Library for iOS, tvOS and OS X / macOS
 All Classes Functions Variables Properties Pages
Class Methods | Properties | Instance Methods | List of all members
PTDiffusionTopicDetails Class Reference

Introduction

Topic details describe a topic.

Where many topics are to have the same definition, the same topic detail can (and indeed should) be used to create many topics.

Topic details are also used to provide details of existing topics to clients. In this case schema and/or attributes may not be present in the details if that level of detail was not requested.

See Also
PTDiffusionTopicsFeature
PTDiffusionTopicControlFeature
Deprecated:
Since 6.0. The use of PTDiffusionTopicDetails is being phased out in favor of PTDiffusionTopicSpecification. This interface will be removed in a future release.
Since
5.6
Inheritance diagram for PTDiffusionTopicDetails:

Class Methods

(instancetype) + NS_UNAVAILABLE
 
(instancetype) + topicDetailsWithType:
 
(instancetype) + recordTopicDetails
 
(instancetype) + recordTopicDetailsWithBuilderBlock:
 
(instancetype) + routingTopicDetails
 
(instancetype) + routingTopicDetailsWithBuilderBlock:
 
(instancetype) + singleValueTopicDetails
 
(instancetype) + singleValueTopicDetailsWithBuilderBlock:
 
(instancetype) + slaveTopicDetailsWithBuilderBlock:
 
(instancetype) + statelessTopicDetails
 
(instancetype) + statelessTopicDetailsWithBuilderBlock:
 

Properties

PTDiffusionTopicAttributesattributes
 
PTDiffusionTopicSchemaschema
 
PTDiffusionTopicType type
 

Instance Methods

(instancetype) - NS_UNAVAILABLE
 
(BOOL) - isEqualToTopicDetails:
 

Method Documentation

- (BOOL) isEqualToTopicDetails: (nullable PTDiffusionTopicDetails *)  topicDetails

Compares the receiver to the given topic details.

Parameters
topicDetailsThe topic details object with which to compare the receiver.
Returns
YES if the topic details is equal to the receiver, otherwise NO.
Since
5.7
+ (instancetype) recordTopicDetails

Returns new topic details for a record topic with all default settings.

Since
5.7
+ (instancetype) recordTopicDetailsWithBuilderBlock: (PTDiffusionRecordTopicDetailsBuilderBlock)  block

Returns new topic details for a record topic configured using the given builder block which is supplied an object conforming to the PTDiffusionRecordTopicDetailsBuilder protocol.

Since
5.7
+ (instancetype) routingTopicDetails

Returns new topic details for a routing topic with all default settings.

Since
5.7
+ (instancetype) routingTopicDetailsWithBuilderBlock: (PTDiffusionRoutingTopicDetailsBuilderBlock)  block

Returns new topic details for a routing topic configured using the given builder block which is supplied an object conforming to the PTDiffusionRoutingTopicDetailsBuilder protocol.

Since
5.7
+ (instancetype) singleValueTopicDetails

Returns new topic details for a single value topic with all default settings.

Since
5.7
+ (instancetype) singleValueTopicDetailsWithBuilderBlock: (PTDiffusionSingleValueTopicDetailsBuilderBlock)  block

Returns new topic details for a single value topic configured using the given builder block which is supplied an object conforming to the PTDiffusionSingleValueTopicDetailsBuilder protocol.

Since
5.7
+ (instancetype) slaveTopicDetailsWithBuilderBlock: (PTDiffusionSlaveTopicDetailsBuilderBlock)  block

Returns new topic details for a slave topic configured using the given builder block which is supplied an object conforming to the PTDiffusionSlaveTopicDetailsBuilder protocol.

Since
5.7
+ (instancetype) statelessTopicDetails

Returns new topic details for a stateless topic with all default settings.

Since
5.7
+ (instancetype) statelessTopicDetailsWithBuilderBlock: (PTDiffusionTopicDetailsBuilderBlock)  block

Returns new topic details for a stateless topic configured using the given builder block which is supplied an object conforming to the PTDiffusionTopicDetailsBuilder protocol.

Since
5.7
+ (instancetype) topicDetailsWithType: (PTDiffusionTopicType)  type

Returns new topic details of the given type set with all default settings.

This provides a simpler mechanism than using a builder where all of the builder's default values are suitable and there are no mandatory properties.

Parameters
typeThe topic type for which default details are to be returned.
Exceptions
PTDiffusionUnsupportedTopicDetailsBuildExceptionIf the creation of topic details for the given type is not supported by this client library.
PTDiffusionInvalidTopicDetailsBuilderStateExceptionIf default details can't be created for the specified type as a builder has to be used.
Since
5.7

Property Documentation

- (PTDiffusionTopicAttributes*) attributes
readnonatomicassign

Attributes associated with this topic.

Since
5.7
- (PTDiffusionTopicSchema*) schema
readnonatomicassign

Schema associated with this topic.

Since
5.7
- (PTDiffusionTopicType) type
readnonatomicassign

The type of topic.

Since
5.6