READER_DATA_LIFECYCLE
-
The READER_DATA_LIFECYCLE QoS policy controls the lifecycle of data instances managed by a data reader. Here is the IDL for the Reader Data Lifecycle QoS policy:
struct ReaderDataLifecycleQosPolicy {
Duration_t autopurge_nowriter_samples_delay;
Duration_t autopurge_disposed_samples_delay;
};
-
Normally, a data reader maintains data for all instances until there are no more associated data writers for the instance, the instance has been disposed, or the data has been taken by the user.
-
In some cases, it may be desirable to constrain the reclamation of these resources. This policy could, for example, permit a late-joining data writer to prolong the lifetime of an instance in fail-over situations.
-
The
autopurge_nowriter_samples_delay
controls how long the data reader waits before reclaiming resources once an instance transitions to the NOT_ALIVE_NO_WRITERS state. By default,
autopurge_nowriter_samples_delay
is infinite.
-
The
autopurge_disposed_samples_delay
controls how long the data reader waits before reclaiming resources once an instance transitions to the NO_ALIVE_DISPOSED state. By default,
autopurge_disposed_samples_delay
is infinite.