OpenSplice C# API  v6.x
OpenSplice C# Data Distribution Service Data-Centric Publish-Subscribe API
ReaderLifespan QoS

This QosPolicy automatically remove samples from the DataReader after a specified timeout.

NOTE: This is an OpenSplice-specific QosPolicy, it is not part of the DDS Specification.

Attributes

Value Meaning Concerns RxO Changeable
A boolean:
use_lifespan
Controls whether the lifespan is applied to the samples in the DataReader. DataReader N/A Yes
A duration:
duration
The duration after which data loses validity and is removed.

This QosPolicy is similar to the LifespanQosPolicy (applicable to Topic and DataWriter), but limited to the DataReader on which the QosPolicy is applied. The data is automatically removed from the DataReader if it has not been taken yet after the lifespan duration expires. The duration of the ReaderLifespan is added to the insertion time of the data in the DataReader to determine the expiry time.

When both the ReaderLifespanQosPolicy and a DataWriter’s LifespanQosPolicy are applied to the same data, only the earliest expiry time is taken into account.

By default, the ReaderLifespanQosPolicy is not used and use_lifespan is FALSE. The duration is set to DURATION_INFINITE.

This QosPolicy is applicable to a DataReader only, and is mutable even when the DataReader is already enabled. If modified, the new setting will only be applied to samples that are received after the modification took place.