RTI Connext Java API  Version 6.0.1
 All Classes Namespaces Functions Variables Groups Pages
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.
 
 LivelinessChangedStatus (LivelinessChangedStatus src)
 A copy constructor.
 

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.
 
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.
 
int alive_count_change
 The change in the alive_count since the last time the listener was called or the status was read.
 
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.
 
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.
 

Additional Inherited Members

- Protected Member Functions inherited from Struct
 Struct ()
 
abstract void pull_from_nativeI (long native_status)
 
abstract void push_to_nativeI (long native_status)
 

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

The no-argument constructor for this status object.

A copy constructor.

Exceptions
NullPointerExceptionif the given status is null.

Member Data Documentation

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.

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.

int alive_count_change

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

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


RTI Connext Java API Version 6.0.1 Copyright © Sat Nov 23 2019 Real-Time Innovations, Inc