CoreDX DDS C++ Reference Manual
Public Member Functions | List of all members
DDS::SubscriberListener Class Reference

The SubscriberListener provides asynchronous notification of Subscriber events. More...

Inheritance diagram for DDS::SubscriberListener:
DDS::DataReaderListener DDS::DomainParticipantListener

Public Member Functions

virtual void on_data_on_readers (Subscriber *)
- Public Member Functions inherited from DDS::DataReaderListener
virtual void on_requested_deadline_missed (DataReader *, const RequestedDeadlineMissedStatus &)
virtual void on_requested_incompatible_qos (DataReader *, const RequestedIncompatibleQosStatus &)
virtual void on_sample_rejected (DataReader *, const SampleRejectedStatus &)
virtual void on_liveliness_changed (DataReader *, const LivelinessChangedStatus &)
virtual void on_data_available (DataReader *)
virtual void on_subscription_matched (DataReader *, const SubscriptionMatchedStatus &)
virtual void on_sample_lost (DataReader *, const SampleLostStatus &)

Detailed Description

The SubscriberListener provides asynchronous notification of Subscriber events.

This listener can be installed during Subscriber creation, DomainParticipant_create_subscriber() as well as by calling Subscriber_set_listener().

The listener callback methods should be lightweight and should not block. If a callback method blocks, it will block all other callback operations within the same DomainParticipant.

Member Function Documentation

virtual void DDS::SubscriberListener::on_data_on_readers ( Subscriber )

on_data_on_readers() is called when the CoreDX DDS middleware detects that data or data state information arrives at any DataReader contained within the Subscriber.

The status argument provides a snapshot of the status at the time the listener was invoked.

© 2009-2017 Twin Oaks Computing, Inc
Castle Rock, CO 80108
All rights reserved.