RTI Connext Traditional C++ API  Version 5.2.3
 All Classes Functions Variables Typedefs Enumerations Enumerator Groups Pages
DDS_DestinationOrderQosPolicy Struct Reference

Controls how the middleware will deal with data sent by multiple DDSDataWriter entities for the same instance of data (i.e., same DDSTopic and key). More...

Public Attributes

DDS_DestinationOrderQosPolicyKind kind
 Specifies the desired kind of destination order.
 
struct DDS_Duration_t source_timestamp_tolerance
 <<extension>> Allowed tolerance between source timestamps of consecutive samples.
 

Detailed Description

Controls how the middleware will deal with data sent by multiple DDSDataWriter entities for the same instance of data (i.e., same DDSTopic and key).

Entity:
DDSTopic, DDSDataReader, DDSDataWriter
Status:
DDS_OFFERED_INCOMPATIBLE_QOS_STATUS, DDS_REQUESTED_INCOMPATIBLE_QOS_STATUS
Properties:
RxO = YES
Changeable = UNTIL ENABLE

Usage

When multiple DataWriters send data for the same topic, the order in which data from different DataWriters are received by the applications of different DataReaders may be different. So different DataReaders may not receive the same "last" value when DataWriters stop sending data.

This QoS policy controls how each subscriber resolves the final value of a data instance that is written by multiple DDSDataWriter entities (which may be associated with different DDSPublisher entities) running on different nodes.

The default setting, DDS_BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS, indicates that (assuming the OWNERSHIP_STRENGTH policy allows it) the latest received value for the instance should be the one whose value is kept. That is, data will be delivered by a DDSDataReader in the order in which it was received (which may lead to inconsistent final values).

The setting DDS_BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS indicates that (assuming the OWNERSHIP_STRENGTH allows it, within each instance) the source_timestamp of the change shall be used to determine the most recent information. That is, data will be delivered by a DDSDataReader in the order in which it was sent. If data arrives on the network with a source timestamp that is later than the source timestamp of the last data delivered, the new data will be dropped. This 'by source timestamp' ordering therefore works best when system clocks are relatively synchronized among writing machines.

When using DDS_BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS, not all data sent by multiple DDSDataWriter entities may be delivered to a DDSDataReader and not all DataReaders will see the same data sent by DataWriters. However, all DataReaders will see the same "final" data when DataWriters "stop" sending data. This is the only setting that, in the case of concurrently publishing DDSDataWriter entities updating the same instance of a shared-ownership topic, ensures all subscribers will end up with the same final value for the instance.

This QoS can be used to create systems that have the property of "eventual consistency." Thus intermediate states across multiple applications may be inconsistent, but when DataWriters stop sending changes to the same topic, all applications will end up having the same state.

Compatibility

The value offered is considered compatible with the value requested if and only if the inequality offered kind >= requested kind evaluates to 'TRUE'. For the purposes of this inequality, the values of DDS_DestinationOrderQosPolicy::kind are considered ordered such that DDS_BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS < DDS_BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS

Member Data Documentation

DDS_DestinationOrderQosPolicyKind DDS_DestinationOrderQosPolicy::kind

Specifies the desired kind of destination order.

[default] DDS_BY_RECEPTION_TIMESTAMP_DESTINATIONORDER_QOS,

struct DDS_Duration_t DDS_DestinationOrderQosPolicy::source_timestamp_tolerance

<<extension>> Allowed tolerance between source timestamps of consecutive samples.

When a DDSDataWriter sets DDS_DestinationOrderQosPolicyKind to DDS_BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS, when writing a sample, its timestamp must not be less than the timestamp of the previously written sample. However, if it is less than the timestamp of the previously written sample but the difference is less than this tolerance, the sample will use the previously written sample's timestamp as its timestamp. Otherwise, if the difference is greater than this tolerance, the write will fail.

When a DDSDataReader sets DDS_DestinationOrderQosPolicyKind to DDS_BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS, the DDSDataReader will accept a sample only if the source timestamp is no farther in the future from the reception timestamp than this tolerance. Otherwise, the sample is rejected.

[default] 100 milliseconds for DDSDataWriter, 30 seconds for DDSDataReader


RTI Connext Traditional C++ API Version 5.2.3 Copyright © Wed Apr 27 2016 Real-Time Innovations, Inc