31.8.1 QoSs

When a persistence service discovers a topic 'A' that matches a specific persistence group, it creates a reader (known as ‘PRSTDataReader’) and writer (‘PRSTDataWriter’) to persist that topic. The QoSs associated with these readers and writers, as well as the corresponding publishers and subscribers, can be configured inside the persistence group using QoS tags.

For example:

<participant name="Part1">
    <domain_id>71</domain_id>
    <persistence_group name="PerGroup1" filter="*">
         ...
        <publisher_qos base_name="QosLib1::PubQos1"/>
        <subscriber_qos base_name="QosLib1::SubQos1"/>
        <datawriter_qos base_name="QosLib1::WriterQos1"/>
        <datareader_qos base_name="QosLib1::ReaderQos1"/>
	  ...
    </persistence_group>
</participant>

For instance, the number of DDS samples saved by Persistence Service is configurable through the 7.5.12 HISTORY QosPolicy of the PRSTDataWriters.

If a QoS tag is not specified, the persistence service will use the corresponding DDS default values (31.8.2 DurabilityService QoS Policy describes an exception to this rule).

31.8.1.1 DataRepresentation QoS Policy

The PRSTDataReader's DataRepresentation QoS Policy may contain either XCDR_DATA_REPRESENTATION or XCDR2_DATA_REPRESENTATION, but not both. The PRSTDataReader and PRSTDataWriter of a given topic must have identical DataRepresentation QoS Policy values. See 7.5.3 DATA_REPRESENTATION QosPolicy.

© 2020 RTI