RTI Connext C++ API  Version 5.1.0
DDSDataWriterListener Class Reference

<<interface>> DDSListener for writer status. More...

Inheritance diagram for DDSDataWriterListener:
DDSListener DDSPublisherListener DDSDomainParticipantListener

Public Member Functions

virtual void on_offered_deadline_missed (DDSDataWriter *writer, const DDS_OfferedDeadlineMissedStatus &status)
 Handles the DDS_OFFERED_DEADLINE_MISSED_STATUS status.
 
virtual void on_liveliness_lost (DDSDataWriter *writer, const DDS_LivelinessLostStatus &status)
 Handles the DDS_LIVELINESS_LOST_STATUS status.
 
virtual void on_offered_incompatible_qos (DDSDataWriter *writer, const DDS_OfferedIncompatibleQosStatus &status)
 Handles the DDS_OFFERED_INCOMPATIBLE_QOS_STATUS status.
 
virtual void on_publication_matched (DDSDataWriter *writer, const DDS_PublicationMatchedStatus &status)
 Handles the DDS_PUBLICATION_MATCHED_STATUS status.
 
virtual void on_reliable_writer_cache_changed (DDSDataWriter *writer, const DDS_ReliableWriterCacheChangedStatus &status)
 <<eXtension>> A change has occurred in the writer's cache of unacknowledged samples.
 
virtual void on_reliable_reader_activity_changed (DDSDataWriter *writer, const DDS_ReliableReaderActivityChangedStatus &status)
 <<eXtension>> A matched reliable reader has become active or become inactive.
 
virtual void on_instance_replaced (DDSDataWriter *writer, const DDS_InstanceHandle_t &handle)
 Notifies when an instance is replaced in DataWriter queue.
 

Detailed Description

Member Function Documentation

virtual void DDSDataWriterListener::on_offered_deadline_missed ( DDSDataWriter writer,
const DDS_OfferedDeadlineMissedStatus status 
)
virtual

Handles the DDS_OFFERED_DEADLINE_MISSED_STATUS status.

This callback is called when the deadline that the DDSDataWriter has committed through its DEADLINE qos policy was not respected for a specific instance. This callback is called for each deadline period elapsed during which the DDSDataWriter failed to provide data for an instance.

Parameters
writer<<out>> Locally created DDSDataWriter that triggers the listener callback
status<<out>> Current deadline missed status of locally created DDSDataWriter
virtual void DDSDataWriterListener::on_liveliness_lost ( DDSDataWriter writer,
const DDS_LivelinessLostStatus status 
)
virtual

Handles the DDS_LIVELINESS_LOST_STATUS status.

This callback is called when the liveliness that the DDSDataWriter has committed through its LIVELINESS qos policy was not respected; this DDSDataReader entities will consider the DDSDataWriter as no longer "alive/active". This callback will not be called when an already not alive DDSDataWriter simply renames not alive for another liveliness period.

Parameters
writer<<out>> Locally created DDSDataWriter that triggers the listener callback
status<<out>> Current liveliness lost status of locally created DDSDataWriter
virtual void DDSDataWriterListener::on_offered_incompatible_qos ( DDSDataWriter writer,
const DDS_OfferedIncompatibleQosStatus status 
)
virtual

Handles the DDS_OFFERED_INCOMPATIBLE_QOS_STATUS status.

This callback is called when the DDS_DataWriterQos of the DDSDataWriter was incompatible with what was requested by a DDSDataReader. This callback is called when a DDSDataWriter has discovered a DDSDataReader for the same DDSTopic and common partition, but with a requested QoS that is incompatible with that offered by the DDSDataWriter.

Parameters
writer<<out>> Locally created DDSDataWriter that triggers the listener callback
status<<out>> Current incompatible qos status of locally created DDSDataWriter
virtual void DDSDataWriterListener::on_publication_matched ( DDSDataWriter writer,
const DDS_PublicationMatchedStatus status 
)
virtual

Handles the DDS_PUBLICATION_MATCHED_STATUS status.

This callback is called when the DDSDataWriter has found a DDSDataReader that matches the DDSTopic, has a common partition and compatible QoS, or has ceased to be matched with a DDSDataReader that was previously considered to be matched.

Parameters
writer<<out>> Locally created DDSDataWriter that triggers the listener callback
status<<out>> Current publication match status of locally created DDSDataWriter
virtual void DDSDataWriterListener::on_reliable_writer_cache_changed ( DDSDataWriter writer,
const DDS_ReliableWriterCacheChangedStatus status 
)
virtual

<<eXtension>> A change has occurred in the writer's cache of unacknowledged samples.

This listener callback is triggered when:

Parameters
writer<<out>> Locally created DDSDataWriter that triggers the listener callback
status<<out>> Current reliable writer cache changed status of locally created DDSDataWriter
virtual void DDSDataWriterListener::on_reliable_reader_activity_changed ( DDSDataWriter writer,
const DDS_ReliableReaderActivityChangedStatus status 
)
virtual

<<eXtension>> A matched reliable reader has become active or become inactive.

Parameters
writer<<out>> Locally created DDSDataWriter that triggers the listener callback
status<<out>> Current reliable reader activity changed status of locally created DDSDataWriter
virtual void DDSDataWriterListener::on_instance_replaced ( DDSDataWriter writer,
const DDS_InstanceHandle_t handle 
)
virtual

Notifies when an instance is replaced in DataWriter queue.

This callback is called when an instance is replaced by the DDSDataWriter due to instance resource limits being reached. This callback returns to the user the handle of the replaced instance, which can be used to get the key of the replaced instance.

Parameters
writer<<out>> Locally created DDSDataWriter that triggers the listener callback
handle<<out>> Handle of the replaced instance

RTI Connext C++ API Version 5.1.0 Copyright © Mon Feb 3 2014 Real-Time Innovations, Inc