OpenSplice C# API  v6.x
OpenSplice C# Data Distribution Service Data-Centric Publish-Subscribe API
DDS.LifespanQosPolicy Struct Reference

More...

Collaboration diagram for DDS.LifespanQosPolicy:
Collaboration graph

Public Attributes

Duration Duration
 

Detailed Description

This QosPolicy specifies the duration of the validity of the data written by the DataWriter.

Attributes

Value Meaning Concerns RxO Changeable
A duration:
duration
Specifies the maximum duration of validity of the data written by the DataWriter. The default value of the lifespan duration is infinite. Topic, DataWriter N/A Yes

The purpose of this QoS is to avoid delivering "stale" data to the application. Each data sample written by the DataWriter has an associated ‘expiration time’ beyond which the data should not be delivered to any application. Once the sample expires, the data will be removed from the DataReader caches as well as from the transient and persistent information caches. The ‘expiration time’ of each sample is computed by adding the duration specified by the LIFESPAN QoS to the source timestamp. This QoS relies on the sender and receiving applications having their clocks sufficiently synchronized. If this is not the case and the Service can detect it, the DataReader is allowed to use the reception timestamp instead of the source timestamp in its computation of the ‘expiration time.’

Definition at line 1264 of file DdsDcpsStructs.cs.

Member Data Documentation

◆ Duration

Duration DDS.LifespanQosPolicy.Duration

Definition at line 1266 of file DdsDcpsStructs.cs.


The documentation for this struct was generated from the following file: