Messaging
and MessagingControl
are a better
alternative to Service Topics for sending point-to-point
requests.
@Deprecated public interface ServiceTopicDetails extends TopicDetails
Service
topic.
This type of topic provides the mechanism for routing and executing user written request/response services.
Each service request comprises a 'request type', context and optional user header values and/or content.
The service request can be handled server side by a nominated user written
class that is available at the server. If a server side class is used it must
implement the
com.pushtechnology.diffusion.api.data.service.ServiceHandler
interface defined by the Classic API.
At this release of the Unified API, though such topics can be created there is no feature within the client to invoke such services and none within the client to action requests to services. However, topics may be created providing they have a server side handler class and they are only to be used by users of 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);
ServiceTopicDetails.Builder builder = control.newDetailsBuilder(ServiceTopicDetails.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 |
ServiceTopicDetails.Attributes
Deprecated.
Service topic details attributes.
|
static interface |
ServiceTopicDetails.Builder
Deprecated.
Service topic details builder.
|
static interface |
ServiceTopicDetails.Schema
Deprecated.
Service topic details schema.
|
TopicDetails.Level
Modifier and Type | Method and Description |
---|---|
ServiceTopicDetails.Builder |
newBuilder()
Deprecated.
Returns a new builder initialized with the values from these details.
|
getAttributes, getLevel, getSchema, getType
ServiceTopicDetails.Builder newBuilder()
Copyright © 2016 Push Technology Ltd. All Rights Reserved.