RTI Connext .NET API (legacy)
Version 6.1.0
|
LIVELINESS_CHANGED_STATUS. More...
#include <managed_subscription.h>
Public Attributes | |
System::Int32 | alive_count |
The total count of currently alive DDS::DataWriter entities that write the DDS::Topic that this DDS::DataReader reads. More... | |
System::Int32 | not_alive_count |
The total count of currently not_alive DDS::DataWriter entities that write the DDS::Topic that this DDS::DataReader reads. More... | |
System::Int32 | alive_count_change |
The change in the alive_count since the last time the listener was called or the status was read. More... | |
System::Int32 | not_alive_count_change |
The change in the not_alive_count since the last time the listener was called or the status was read. More... | |
InstanceHandle_t | last_publication_handle |
This InstanceHandle can be used to look up which remote DDS::DataWriter was the last to cause this DataReader's status to change, using DDS::DataReader::get_matched_publication_data. More... | |
LIVELINESS_CHANGED_STATUS.
The DDS::DataReaderListener::on_liveliness_changed callback may be invoked for the following reasons:
The liveliness of any DDS::DataWriter matching this DataReader (as defined by the DDS::LivelinessQosPolicyKind setting) is lost.
A DataWriter's liveliness is recovered after being lost.
A new matching DataWriter has been discovered.
A matching DataWriter has been deleted.
A QoS Policy has changed such that a DataWriter that matched this DataReader before no longer matches (such as a change to the DDS::PartitionQosPolicy). In this case, RTI Connext will no longer keep track of the DataWriter's liveliness. Furthermore, consider two scenarios:
DataWriter was not alive when it and DataReader stopped matching: DDS::LivelinessChangedStatus::alive_count will remain the same (since the matching DataWriter was not alive) and DDS::LivelinessChangedStatus::not_alive_count will decrease (since there's one less not-alive matching DataWriter).
Note: There are several ways that a DataWriter and DataReader can become incompatible after the DataWriter has lost liveliness. For example, when the DDS::LivelinessQosPolicyKind is set to DDS_MANUAL_BY_PARTICIPANT_LIVELINESS_QOS, it is possible that the DataWriter has not asserted its liveliness in a timely manner, and then a QoS change occurs on the DataWriter or DataReader that makes the entities incompatible.
System::Int32 DDS::LivelinessChangedStatus::alive_count |
The total count of currently alive DDS::DataWriter entities that write the DDS::Topic that this DDS::DataReader reads.
System::Int32 DDS::LivelinessChangedStatus::not_alive_count |
The total count of currently not_alive DDS::DataWriter entities that write the DDS::Topic that this DDS::DataReader reads.
System::Int32 DDS::LivelinessChangedStatus::alive_count_change |
The change in the alive_count since the last time the listener was called or the status was read.
System::Int32 DDS::LivelinessChangedStatus::not_alive_count_change |
The change in the not_alive_count since the last time the listener was called or the status was read.
Note that a positive not_alive_count_change means one of the following:
The DomainParticipant containing the matched DataWriter has lost liveliness or has been deleted.
InstanceHandle_t DDS::LivelinessChangedStatus::last_publication_handle |
This InstanceHandle can be used to look up which remote DDS::DataWriter was the last to cause this DataReader's status to change, using DDS::DataReader::get_matched_publication_data.
It's possible that the DataWriter has been purged from the discovery database. (See the "What is Discovery?" section of the User's Manual.) If so, the DDS::DataReader::get_matched_publication_data method will not be able to return information about the DataWriter. In this case, the only way to get information about the lost DataWriter is if you cached the information previously.