Class LivelinessChangedStatus

Inheritance Relationships

Base Type

Class Documentation

class LivelinessChangedStatus : public dds::core::Value<detail::LivelinessChangedStatus>

Public Functions

OMG_DDS_API LivelinessChangedStatus()
OMG_DDS_API int32_t alive_count () const
Returns:

The total number of currently active DataWriters that write the Topic read by the DataReader. This count increases when a newly-matched DataWriter asserts its liveliness for the first time or when a DataWriter previously considered to be not alive reasserts its liveliness. The count decreases when a DataWriter considered alive fails to assert its liveliness and becomes not alive, whether because it was deleted normally or for some other reason.

OMG_DDS_API int32_t not_alive_count () const
Returns:

The total count of currently DataWriters that write the Topic read by the DataReader that are no longer asserting their liveliness. This count increases when a DataWriter considered alive fails to assert its liveliness and becomes not alive for some reason other than the normal deletion of that DataWriter. It decreases when a previously not alive DataWriter either reasserts its liveliness or is deleted normally.

OMG_DDS_API int32_t alive_count_change () const
Returns:

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

OMG_DDS_API int32_t not_alive_count_change () const
Returns:

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

OMG_DDS_API const dds::core::InstanceHandle last_publication_handle () const
Returns:

Handle to the last DataWriter whose change in liveliness caused this status to change.