This topic type will be removed in a future release. The main
reason for using custom topics was to support different data
formats but this can now be better performed using
binary
topics.
@Deprecated public interface CustomTopicDetails extends TopicDetails
Custom
topic.
Such a topic can maintain its state in any user defined manner. Its behavior
is defined by a user written Java class which must have been pre-deployed at
the server. The class must implement the
com.pushtechnology.diffusion.api.data.custom.CustomTopicDataHandler
interface defined by the Classic API.
To create an instance of such details use a builder obtained from the
TopicControl
feature as follows:
TopicControl control = session.feature(TopicControl.class);
CustomTopicDetails.Builder builder = control.newDetailsBuilder(CustomTopicDetails.Builder.class);
The minimum that must be provided to the builder is the name of the handler
class.Modifier and Type | Interface and Description |
---|---|
static interface |
CustomTopicDetails.Attributes
Deprecated.
Custom topic details attributes.
|
static interface |
CustomTopicDetails.Builder
Deprecated.
Builder for Custom topic details.
|
static interface |
CustomTopicDetails.Schema
Deprecated.
Custom topic details schema.
|
TopicDetails.Level
Modifier and Type | Method and Description |
---|---|
CustomTopicDetails.Builder |
newBuilder()
Deprecated.
Returns a new builder initialized with the values from these details.
|
getAttributes, getLevel, getSchema, getType
CustomTopicDetails.Builder newBuilder()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.