Public Attributes | |
final Duration_t | duration |
Maximum duration for the data's validity. |
Each data sample written by the com.rti.dds.publication.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 com.rti.dds.subscription.DataReader caches as well as from the transient and persistent information caches.
The expiration time of each sample from the com.rti.dds.publication.DataWriter's cache is computed by adding the duration specified by this QoS policy to the sample's source timestamp. The expiration time of each sample from the com.rti.dds.subscription.DataReader's cache is computed by adding the duration to the reception timestamp.
com.rti.dds.topic.example.FooDataWriter.write_w_timestamp
You may also use this QoS policy to ensure that applications do not receive or act on data, commands or messages that are too old and have 'expired.'
To avoid inconsistencies, multiple writers of the same instance should have the same lifespan.
final Duration_t duration |
Maximum duration for the data's validity.
[default] com.rti.dds.infrastructure.Duration_t.INFINITE
[range] [1 nanosec, 1 year] or com.rti.dds.infrastructure.Duration_t.INFINITE