RTI Connext Traditional C++ API  Version 6.0.0
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
DDSDomainParticipantListener Class Reference

<<interface>> Listener for participant status. More...

Inheritance diagram for DDSDomainParticipantListener:
DDSTopicListener DDSPublisherListener DDSSubscriberListener DDSListener DDSDataWriterListener DDSDataReaderListener DDSListener DDSListener

Additional Inherited Members

- Public Member Functions inherited from DDSTopicListener
virtual void on_inconsistent_topic (DDSTopic *topic, const DDS_InconsistentTopicStatus &status)
- Public Member Functions inherited from DDSDataWriterListener
virtual void on_offered_deadline_missed (DDSDataWriter *writer, const DDS_OfferedDeadlineMissedStatus &status)
virtual void on_liveliness_lost (DDSDataWriter *writer, const DDS_LivelinessLostStatus &status)
virtual void on_offered_incompatible_qos (DDSDataWriter *writer, const DDS_OfferedIncompatibleQosStatus &status)
virtual void on_publication_matched (DDSDataWriter *writer, const DDS_PublicationMatchedStatus &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_sample_removed (DDSDataWriter *writer, const DDS_Cookie_t &cookie)
 <<extension>> Called when a sample is removed from the DataWriter queue.
virtual void on_instance_replaced (DDSDataWriter *writer, const DDS_InstanceHandle_t &handle)
 <<extension>> Notifies when an instance is replaced in DataWriter queue.
virtual void on_application_acknowledgment (DDSDataWriter *writer, const DDS_AcknowledgmentInfo &info)
 <<extension>> Called when a sample is application-acknowledged
virtual void on_service_request_accepted (DDSDataWriter *writer, const DDS_ServiceRequestAcceptedStatus &status)
 <<extension>> Called when a DDS_ServiceRequest for the DDSTopicQuery service is dispatched to this DDSDataWriter for processing.
- Public Member Functions inherited from DDSSubscriberListener
virtual void on_data_on_readers (DDSSubscriber *sub)
 Handles the DDS_DATA_ON_READERS_STATUS communication status.

Detailed Description

<<interface>> Listener for participant status.

Status Kinds

This is the interface that can be implemented by an application-provided class and then registered with the DDSDomainParticipant such that the application can be notified by RTI Connext of relevant status changes.

The DDSDomainParticipantListener interface extends all other Listener interfaces and has no additional operation beyond the ones defined by the more general listeners.

The purpose of the DDSDomainParticipantListener is to be the listener of last resort that is notified of all status changes not captured by more specific listeners attached to the DDSDomainEntity objects. When a relevant status change occurs, RTI Connext will first attempt to notify the listener attached to the concerned DDSDomainEntity if one is installed. Otherwise, RTI Connext will notify the Listener attached to the DDSDomainParticipant.

Important: Because a DDSDomainParticipantListener may receive callbacks pertaining to many different entities, it is possible for the same listener to receive multiple callbacks simultaneously in different threads. (Such is not the case for listeners of other types.) It is therefore critical that users of this listener provide their own protection for any thread-unsafe activities undertaken in a DDSDomainParticipantListener callback.

Note: Due to a thread-safety issue, the destruction of a DomainParticipantListener from an enabled DomainParticipant should be avoided – even if the DomainParticipantListener has been removed from the DomainParticipant. (This limitation does not affect the Java API.)

See Also

RTI Connext Traditional C++ API Version 6.0.0 Copyright © Sun Mar 3 2019 Real-Time Innovations, Inc