public interface RoutingTopicDetails extends TopicDetails
Routing
topic.
If a routing topic is created with default details then when a client
subscribes to the topic the routing is delegated to a control client using
the SubscriptionControl
feature. If there is no control client
handling the subscriptions to the routing topic, clients cannot subscribe to
the topic.
Alternatively, the full class name of a subscription handler class which will
action the mappings at the server may be supplied. The class must implement
the
com.pushtechnology.diffusion.api.data.routing.RoutingTopicDataSubscriptionHandler
interface defined by the Classic API.
The easiest way to create an instance of such details is using
TopicControl.newDetails(TopicType)
, for example:
TopicControl control = session.feature(TopicControl.class);
TopicDetails details = control.newDetails(TopicType.ROUTING);
The above would create details for a routing topic that will be controlled by
the SubscriptionControl
feature. Alternatively the details can be
created using a builder obtained as follows:
RoutingTopicDetails.Builder builder = control.newDetailsBuilder(RoutingTopicDetails.Builder.class);
Modifier and Type | Interface and Description |
---|---|
static interface |
RoutingTopicDetails.Attributes
Routing topic details attributes.
|
static interface |
RoutingTopicDetails.Builder
Routing topic details builder.
|
static interface |
RoutingTopicDetails.Schema
Routing topic details schema.
|
TopicDetails.Level
Modifier and Type | Method and Description |
---|---|
RoutingTopicDetails.Builder |
newBuilder()
Returns a new builder initialized with the values from these details.
|
getAttributes, getLevel, getSchema, getType
RoutingTopicDetails.Builder newBuilder()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.