RTI Connext Java API  Version 6.1.1
LivelinessChangedStatus Class Reference

com.rti.dds.infrastructure.StatusKind.StatusKind.LIVELINESS_CHANGED_STATUS More...

Inherits Status.

Public Member Functions

 LivelinessChangedStatus ()
 The no-argument constructor for this status object. More...
 
 LivelinessChangedStatus (LivelinessChangedStatus src)
 A copy constructor. More...
 

Public Attributes

int alive_count
 The total count of currently alive com.rti.dds.publication.DataWriter entities that write the com.rti.dds.topic.Topic that this com.rti.dds.subscription.DataReader reads. More...
 
int not_alive_count
 The total count of currently not_alive com.rti.dds.publication.DataWriter entities that write the com.rti.dds.topic.Topic that this com.rti.dds.subscription.DataReader reads. More...
 
int alive_count_change
 The change in the alive_count since the last time the listener was called or the status was read. More...
 
int 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...
 
final InstanceHandle_t last_publication_handle
 This InstanceHandle can be used to look up which remote com.rti.dds.publication.DataWriter was the last to cause this DataReader's status to change, using com.rti.dds.subscription.DataReader.get_matched_publication_data. More...
 

Detailed Description

com.rti.dds.infrastructure.StatusKind.StatusKind.LIVELINESS_CHANGED_STATUS

The com.rti.dds.subscription.DataReaderListener.on_liveliness_changed callback may be invoked for the following reasons:

Constructor & Destructor Documentation

◆ LivelinessChangedStatus() [1/2]

The no-argument constructor for this status object.

Referenced by LivelinessChangedStatus.LivelinessChangedStatus().

◆ LivelinessChangedStatus() [2/2]

Member Data Documentation

◆ alive_count

int alive_count

The total count of currently alive com.rti.dds.publication.DataWriter entities that write the com.rti.dds.topic.Topic that this com.rti.dds.subscription.DataReader reads.

Referenced by LivelinessChangedStatus.LivelinessChangedStatus().

◆ not_alive_count

int not_alive_count

The total count of currently not_alive com.rti.dds.publication.DataWriter entities that write the com.rti.dds.topic.Topic that this com.rti.dds.subscription.DataReader reads.

Referenced by LivelinessChangedStatus.LivelinessChangedStatus().

◆ alive_count_change

int alive_count_change

The change in the alive_count since the last time the listener was called or the status was read.

Referenced by LivelinessChangedStatus.LivelinessChangedStatus().

◆ not_alive_count_change

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

  • The matched DataWriter has lost liveliness or has been deleted.

Referenced by LivelinessChangedStatus.LivelinessChangedStatus().

◆ last_publication_handle

final InstanceHandle_t last_publication_handle

This InstanceHandle can be used to look up which remote com.rti.dds.publication.DataWriter was the last to cause this DataReader's status to change, using com.rti.dds.subscription.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 com.rti.dds.subscription.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.

Referenced by LivelinessChangedStatus.LivelinessChangedStatus().