Public Attributes | |
DDS_DurabilityQosPolicyKind | kind |
The kind of durability. | |
DDS_Boolean | direct_communication |
<<eXtension>> Indicates whether or not a TRANSIENT or PERSISTENT DDSDataReader should receive samples directly from a TRANSIENT or PERSISTENT DDSDataWriter |
Moreover, a DDSDataReader that joins the network after some data has been written could potentially be interested in accessing the most current values of the data, as well as potentially some history.
This policy makes it possible for a late-joining DDSDataReader to obtain previously published samples.
By helping to ensure that DataReaders get all data that was sent by DataWriters, regardless of when it was sent, using this QoS policy can increase system tolerance to failure conditions.
Note that although related, this does not strictly control what data RTI Data Distribution Service will maintain internally. That is, RTI Data Distribution Service may choose to maintain some data for its own purposes (e.g., flow control) and yet not make it available to late-joining readers if the DURABILITY policy is set to DDS_VOLATILE_DURABILITY_QOS.
The Persistence Service can configure itself based on the QoS of your application's DDSDataWriter and DDSDataReader entities. For each transient or persistent DDSTopic, the built-in fictitious Persistence Service DDSDataReader and DDSDataWriter have their QoS configured from the QoS of your application's DDSDataWriter and DDSDataReader entities that communicate on that DDSTopic.
For a given DDSTopic, the usual request/offered semantics apply to the matching between any DDSDataWriter in the domain that writes the DDSTopic and the built-in transient/persistent DDSDataReader for that DDSTopic; similarly for the built-in transient/persistent DDSDataWriter for a DDSTopic and any DDSDataReader for the DDSTopic. As a consequence, a DDSDataWriter that has an incompatible QoS will not send its data to the RTI Persistence Service, and a DDSDataReader that has an incompatible QoS will not get data from it.
Incompatibilities between local DDSDataReader and DDSDataWriter entities and the corresponding fictitious built-in transient/persistent entities cause the DDS_REQUESTED_INCOMPATIBLE_QOS_STATUS and DDS_OFFERED_INCOMPATIBLE_QOS_STATUS to change and the corresponding Listener invocations and/or signaling of DDSCondition objects as they would with your application's own entities.
The value of DDS_DurabilityServiceQosPolicy::service_cleanup_delay controls when RTI Persistence Service is able to remove all information regarding a data instances.
Information on a data instance is maintained until the following conditions are met:
1. The instance has been explicitly disposed (instance_state = NOT_ALIVE_DISPOSED),
and
2. While in the NOT_ALIVE_DISPOSED state, the system detects that there are no more 'live' DDSDataWriter entities writing the instance. That is, all existing writers either unregister the instance (call unregister) or lose their liveliness,
and
3. A time interval longer that DDS_DurabilityServiceQosPolicy::service_cleanup_delay has elapsed since the moment RTI Data Distribution Service detected that the previous two conditions were met.
The utility of DDS_DurabilityServiceQosPolicy::service_cleanup_delay is apparent in the situation where an application disposes an instance and it crashes before it has a chance to complete additional tasks related to the disposition. Upon restart, the application may ask for initial data to regain its state and the delay introduced by the service_cleanup_delay will allow the restarted application to receive the information on the disposed instance and complete the interrupted tasks.
The kind of durability.
[default] DDS_VOLATILE_DURABILITY_QOS
<<eXtension>> Indicates whether or not a TRANSIENT or PERSISTENT DDSDataReader should receive samples directly from a TRANSIENT or PERSISTENT DDSDataWriter
When direct_communication is set to DDS_BOOLEAN_TRUE, a TRANSIENT or PERSISTENT DDSDataReader will receive samples from both the original DDSDataWriter configured with TRANSIENT or PERSISTENT durability and the DDSDataWriter created by the persistence service. This peer-to-peer communication pattern provides low latency between end-points.
If the same sample is received from the original DDSDataWriter and the persistence service, the middleware will discard the duplicate.
When direct_communication is set to DDS_BOOLEAN_FALSE, a TRANSIENT or PERSISTENT DDSDataReader will only receive samples from the DDSDataWriter created by the persistence service. This brokered communication pattern provides a way to guarantee eventual consistency.
[default] DDS_BOOLEAN_TRUE