Used to pass configuration parameters when constructing a Requester.
RequesterParams is a valuetype that serves as a container of configuration parameters of a Requester. It is designed to mimic the named-parameters feature available in some programming languages, which improves readability.
RequesterParams | ( | ) |
Default constructor
RequesterParams | ( | RequesterParams | other | ) |
Copy constructor
RequesterParams datareader_qos | ( | DataReaderQos | qos | ) |
Assign the DataReaderQos to use.
This QoS will be used when the Requester creates a DataReader.
DataReaderQos datareader_qos | ( | ) |
Access the DataReaderQos configured in this instance of RequesterParams.
RequesterParams datawriter_qos | ( | DataWriterQos | qos | ) |
Assign the DataWriterQos to use.
This QoS will be used when the Requester creates a DataWriter.
DataWriterQos datawriter_qos | ( | ) |
Access the DataWriterQos configured in this instance of RequesterParams.
RequesterParams domain_participant | ( | DomainParticipant | participant | ) |
Assign the DomainParticipant to use.
The requester will use this DomainParticipant to create any required Publisher, Subscriber, DataWriter and DataReader entities.
DomainParticipant domain_participant | ( | ) |
Access the DomainParticipant configured in this instance of RequesterParams.
RequesterParams publisher | ( | Publisher | publisher | ) |
Assign the Publisher to use.
The Requester will use this publisher to create any required DataWriter entities. If not provided the Requester will create its own Publisher.
Publisher publisher | ( | ) |
Access the Publisher configured in this instance of RequesterParams.
RequesterParams reply_topic_name | ( | String | name | ) |
Assign the 'reply_topic_name'.
This overrides the default topic name generation.
String reply_topic_name | ( | ) |
Access the reply_topic_name configured in this instance of RequesterParams.
RequesterParams request_topic_name | ( | String | name | ) |
Assign the 'request_topic_name' to use as the Request topic name.
This overrides the default topic name generation.
String request_topic_name | ( | ) |
Access the request_topic_name configured in this instance of RequesterParams.
RequesterParams requester_listener | ( | RequesterListener<?extends RequestType,?extends ReplyType > | listener | ) |
Assign the 'requester' listener that will be installed in the Requester.
Only one listener may be installed, either the SimpleListener or RequesterListener.
ListenerBase requester_listener | ( | ) |
Access the RequesterListener configured in this instance of RequesterParams.
RequesterParams service_name | ( | String | name | ) |
Assign the service_name to use when creating the Request and Reply topic names.
The service_name is used when constructing the topic name used for the Request and Reply topics. If not explicitly defined by the request_topic_name() configuration item, the request topic is composed of <service_name>_Request. Similarly, if not overridden by reply_topic_name(), the reply topic name is composed of <service_name>_Reply. If the service_name() item is left unspecified, then the string "Service" is used.
String service_name | ( | ) |
Access the service_name configured in this instance of RequesterParams.
RequesterParams simple_requester_listener | ( | SimpleRequesterListener<?extends ReplyType > | listener | ) |
Assign the 'simple' listener that will be installed in the Requester.
Only one listener may be installed, either the SimpleListener or RequesterListener.
ListenerBase simple_requester_listener | ( | ) |
Access the SimpleRequesterListener configured in this instance of RequesterParams.
RequesterParams subscriber | ( | Subscriber | subscriber | ) |
Assign the Subscriber to use.
The Requester will use this subscriber to create any requried DataReader entities. If not provided, the Requester will create its own Subscriber.
Subscriber subscriber | ( | ) |
Access the Subscriber configured in this instance of RequesterParams.