RTI Connext Modern C++ API  Version 6.0.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
rti::queuing::QueueProducerParams Class Reference

Contains the parameters for creating a QueueProducer. More...

#include <rti/queuing/QueueParams.hpp>

Inheritance diagram for rti::queuing::QueueProducerParams:
rti::queuing::QueueEntityParams< QueueProducerParams >

Public Member Functions

 QueueProducerParams (dds::domain::DomainParticipant participant)
 Creates a QueueProducerParams object with the participant set.
 
bool enable_sample_replication () const
 Causes the QueueProducer to write all the samples with the dds::sub::SampleInfo::flag including the bit rti::core::SampleFlag::replicate.
 
QueueProducerParamsenable_wait_for_ack (bool enable)
 Enables the Queuing Service's 'Acknowledgment Management' feature for the QueueProducer.
 
- Public Member Functions inherited from rti::queuing::QueueEntityParams< QueueProducerParams >
QueueProducerParamsqos_profile (const std::string &qos_library_name, const std::string &qos_profile_name)
 Specifies an XML QoS profile that will be used to configure the quality of service of the DDS entities created.
 
QueueProducerParamsshared_subscriber_name (const std::string &name)
 Sets the SharedSubscriber name associated with the SharedReaderQueues.
 
QueueProducerParamsentity_name (const std::string &name)
 Sets the name of the QueueEntity.
 
- Public Member Functions inherited from rti::request::detail::EntityParamsWithSetters< ActualEntity >
ActualEntity & service_name (const std::string &name)
 
ActualEntity & request_topic_name (const std::string &name)
 
ActualEntity & reply_topic_name (const std::string &name)
 
ActualEntity & datawriter_qos (const dds::core::optional< dds::pub::qos::DataWriterQos > &qos)
 
ActualEntity & datareader_qos (const dds::core::optional< dds::sub::qos::DataReaderQos > &qos)
 
ActualEntity & request_type (const dds::core::optional< dds::core::xtypes::DynamicType > &type)
 
ActualEntity & reply_type (const dds::core::optional< dds::core::xtypes::DynamicType > &type)
 
ActualEntity & publisher (dds::pub::Publisher publisher)
 
ActualEntity & subscriber (dds::sub::Subscriber subscriber)
 

Detailed Description

Contains the parameters for creating a QueueProducer.

Constructor & Destructor Documentation

rti::queuing::QueueProducerParams::QueueProducerParams ( dds::domain::DomainParticipant  participant)
inlineexplicit

Creates a QueueProducerParams object with the participant set.

The rest of the parameters that can be set in a QueueProducerParams object are optional.

Parameters
participantThe dds::domain::DomainParticipant a QueueProducer uses to join a domain.

Member Function Documentation

bool rti::queuing::QueueProducerParams::enable_sample_replication ( ) const
inline

Causes the QueueProducer to write all the samples with the dds::sub::SampleInfo::flag including the bit rti::core::SampleFlag::replicate.

When this value is set to true, all the samples are written with the associated metadata containing the bit rti::core::SampleFlag::replicate. This behavior cannot be changed once this option is enabled (no matter which operation is used to send samples).

QueueProducerParams& rti::queuing::QueueProducerParams::enable_wait_for_ack ( bool  enable)
inline

Enables the Queuing Service's 'Acknowledgment Management' feature for the QueueProducer.

When this value is set to true, you can call the APIs QueueProducer::wait_for_acknowledgments(const dds::core::Duration&) and QueueProducer::wait_for_acknowledgments(const rti::core::SampleIdentity&, const dds::core::Duration&) to wait for acknowledgments from Queuing Service. These acknowledgments indicate whether or not samples have been successfully enqueued.

Notice that if you enable this feature, at some point you must call QueueProducer::wait_for_acknowledgments(const dds::core::Duration&) or QueueProducer::wait_for_acknowledgments(const rti::core::SampleIdentity&, const dds::core::Duration&). Otherwise, the QueueProducer's memory will grow unbounded, since it will keep some state per sample.

You must also set the XML tag <app_ack_sample_to_producer> under <queue_qos>/<reliability> to true.

[default] true


RTI Connext Modern C++ API Version 6.0.0 Copyright © Sun Mar 3 2019 Real-Time Innovations, Inc