RTI Connext Java API  Version 5.3.0
 All Classes Namespaces Functions Variables Groups Pages
ServiceRequest Class Reference

A request coming from one of the built-in services. More...

Inherits AbstractBuiltinTopicData.

Public Attributes

int service_id
 The id of the service that the request was sent on.
 
final GUID_t instance_id
 Each ServiceRequest is keyed on the instance_id.
 
final ByteSeq request_body
 Service-specific information.
 

Static Public Attributes

static final int UNKNOWN_SERVICE_ID
 An invalid Service Id.
 
static final int TOPIC_QUERY_SERVICE_ID
 Service Id for the com.rti.dds.subscription.TopicQuery Service.
 

Additional Inherited Members

- Public Member Functions inherited from Struct
abstract boolean equals (Object obj)
 
abstract int hashCode ()
 
String toString ()
 
- Static Public Member Functions inherited from AbstractBuiltinTopicData
static Iterator topic_name_iteratorI ()
 
- Protected Member Functions inherited from Struct
 Struct ()
 
abstract void pull_from_nativeI (long native_status)
 
abstract void push_to_nativeI (long native_status)
 

Detailed Description

A request coming from one of the built-in services.

Data associated with the built-in topic com.rti.dds.topic.builtin.ServiceRequestTypeSupport.SERVICE_REQUEST_TOPIC_NAME. It contains service-specific information.

See Also
com.rti.dds.topic.builtin.ServiceRequestTypeSupport.SERVICE_REQUEST_TOPIC_NAME
builtin.ParticipantBuiltinTopicDataDataReader

Member Data Documentation

int service_id

The id of the service that the request was sent on.

There can be multiple services that use the built-in ServiceRequest topic. The service_id identifies which service a specific request was sent from.

See Also
com.rti.dds.topic.builtin.ServiceRequest.UNKNOWN_SERVICE_ID
com.rti.dds.topic.builtin.ServiceRequest.TOPIC_QUERY_SERVICE_ID
final GUID_t instance_id

Each ServiceRequest is keyed on the instance_id.

The instance_id provides a way for users to differentiate between different requests coming from the same service.

final ByteSeq request_body

Service-specific information.

Each service uses the request_body field to send information specific to that service in the form of an opaque sequence of bytes. Each service provides a helper function that will deserialize the information from the request body.

See Also
com.rti.dds.subscription.TopicQueryHelper.topic_query_data_from_service_request

RTI Connext Java API Version 5.3.0 Copyright © Sun Jun 25 2017 Real-Time Innovations, Inc