19.1.3.2. DataWriterListener

class DataWriterListener

Class DataWriterListener, allows the end user to implement callbacks triggered by certain events.

Subclassed by eprosima::fastdds::dds::PublisherListener

Public Functions

inline DataWriterListener()

Constructor.

inline virtual ~DataWriterListener()

Destructor.

inline virtual void on_publication_matched(DataWriter *writer, const PublicationMatchedStatus &info)

This method is called when the DataWriter is matched (or unmatched) against an endpoint.

Parameters:
  • writer – Pointer to the associated DataWriter

  • info – Information regarding the matched DataReader

inline virtual void on_offered_deadline_missed(DataWriter *writer, const OfferedDeadlineMissedStatus &status)

A method called when a deadline is missed

Parameters:
  • writer – Pointer to the associated DataWriter

  • status – The deadline missed status

inline virtual void on_offered_incompatible_qos(DataWriter *writer, const OfferedIncompatibleQosStatus &status)

A method called when an incompatible QoS is offered

Parameters:
  • writer – Pointer to the associated DataWriter

  • status – The deadline missed status

inline virtual void on_liveliness_lost(DataWriter *writer, const LivelinessLostStatus &status)

Method called when the liveliness of a DataWriter is lost.

Parameters:
  • writer – Pointer to the associated DataWriter

  • status – The liveliness lost status

inline virtual void on_unacknowledged_sample_removed(DataWriter *writer, const InstanceHandle_t &instance)

Method called when a sample has been removed unacknowledged.

Parameters:
  • writer – Pointer to the associated DataWriter

  • instance – Handle to the instance the sample was removed from