RTI Connext .NET API (legacy)  Version 6.1.0
DDS::LivelinessChangedStatus Struct Reference

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...
 

Detailed Description

LIVELINESS_CHANGED_STATUS.

The DDS::DataReaderListener::on_liveliness_changed callback may be invoked for the following reasons:

Examples:
HelloWorld_subscriber.cpp.

Member Data Documentation

◆ alive_count

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.

◆ not_alive_count

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.

◆ alive_count_change

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.

◆ not_alive_count_change

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:

◆ last_publication_handle

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.