The Diffusion Publisher API is deprecated and will be removed in a future release.
@Deprecated public final class TopicDataFactory extends Object
types
of topic
data
.
There are individual methods for each type.
Use newUniversalData(java.lang.Class<V>)
to create UniversalTopicData
.
Constructor and Description |
---|
TopicDataFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
bootstrap(com.pushtechnology.diffusion.data.InternalTopicDataFactory internalFactory)
Deprecated.
|
static RoutingTopicData |
newRoutingData(RoutingTopicDataSubscriptionHandler handler)
Deprecated.
Create new
Routing Topic Data . |
static SlaveTopicData |
newSlaveData(String masterTopicName)
Deprecated.
|
static TopicData |
newTopicData(TopicDefinition definition)
Deprecated.
since 6.2
The use of TopicDefinition is being phased out. Use one of the other methods in preference. This will be removed in a future release. |
static <V> UniversalTopicData<V> |
newUniversalData(Class<V> valueType)
Deprecated.
Create new
UniversalTopicData . |
static <V> UniversalTopicData<V> |
newUniversalData(Class<V> valueType,
Map<String,String> properties)
Deprecated.
Create new
UniversalTopicData . |
public static void bootstrap(com.pushtechnology.diffusion.data.InternalTopicDataFactory internalFactory)
@Deprecated public static SlaveTopicData newSlaveData(String masterTopicName) throws APIException
SlaveTopicData
.masterTopicName
- specifies the name of the master topic. This must
be a topic that has UniversalTopicData
.APIException
- if the specified master topic does not exist or does
not have UniversalTopicData
public static RoutingTopicData newRoutingData(RoutingTopicDataSubscriptionHandler handler) throws APIException
Routing Topic Data
.
handler
- the handler that will be used to map the routing topic to
actual source topics on a client by client basis.APIException
- if unable to create the datapublic static <V> UniversalTopicData<V> newUniversalData(Class<V> valueType) throws APIException
UniversalTopicData
.valueType
- the type of the topic value. So for a
TopicType.JSON
topic this would be JSON.class
.APIException
- if the specified type is not supportedpublic static <V> UniversalTopicData<V> newUniversalData(Class<V> valueType, Map<String,String> properties) throws APIException
UniversalTopicData
.valueType
- the type of the topic value. So for a
TopicType.JSON
topic this would be JSON.class
.properties
- optional topic properties. See
TopicSpecification
for details of properties that are
permitted.APIException
- if the specified type is not supported or properties
is null@Deprecated public static TopicData newTopicData(TopicDefinition definition) throws APIException
The use of TopicDefinition is being phased out. Use one of the other methods in preference. This will be removed in a future release.
definition
- the topic definition which contains the information
necessary to create the topic dataAPIException
- if unable to create the topic data because the
information within the definition was either incomplete or
incorrectCopyright © 2020 Push Technology Ltd. All Rights Reserved.