LIFESPAN
-
The LIFESPAN QoS policy allows the application to specify when a sample expires. Expired samples will not be delivered to subscribers. This policy applies to the topic and data writer entities via the
lifespan
member of their respective QoS structures. Below is the IDL related to the lifespan QoS policy.
struct LifespanQosPolicy {
Duration_t duration;
}
-
The default value of the
duration
member is infinite, which means samples never expire. OpenDDS currently supports expired sample detection on the publisher side when using a DURABILITY
kind
other than
VOLATILE
. The current OpenDDS implementation may not remove samples from the data writer and data reader caches when they expire after being placed in the cache.
-
The value of this policy may be changed at any time. Changes to this policy affect only data written after the change.