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

The DataReaderListener provides asynchronous notification of DataReader events. More...

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

Public Member Functions

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 DataReaderListener provides asynchronous notification of DataReader events.

This listener can be installed during DataReader creation, Subscriber_create_datareader(), as well as by calling DataReader_set_listener().

Note
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::DataReaderListener::on_data_available ( DataReader )
inlinevirtual

on_data_available() is called when the CoreDX DDS middleware detects that new data or data state information is available.

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

virtual void DDS::DataReaderListener::on_liveliness_changed ( DataReader ,
const LivelinessChangedStatus &   
)
inlinevirtual

on_liveliness_changed() is called when the CoreDX DDS middleware detects that the liveliness of a matched DataWriter has changed (either 'active' or 'inactive').

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

virtual void DDS::DataReaderListener::on_requested_deadline_missed ( DataReader ,
const RequestedDeadlineMissedStatus &   
)
inlinevirtual

on_requested_deadline_missed() is called when the CoreDX DDS middleware detects that the deadline specified in the DataReader QoS DEADLINE policy was not satisfied for a data instance.

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

virtual void DDS::DataReaderListener::on_requested_incompatible_qos ( DataReader ,
const RequestedIncompatibleQosStatus &   
)
inlinevirtual

on_requested_incompatible_qos() is called when the CoreDX DDS middleware detects that the DataReader requested a QoS policy that was incompatible with that offered by a DataWriter.

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

virtual void DDS::DataReaderListener::on_sample_lost ( DataReader ,
const SampleLostStatus &   
)
inlinevirtual

on_sample_lost() is called when the CoreDX DDS middleware detects that a sample has been lost (never received).

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

virtual void DDS::DataReaderListener::on_sample_rejected ( DataReader ,
const SampleRejectedStatus &   
)
inlinevirtual

on_sample_rejected() is called when the CoreDX DDS middleware detects that a sample has been rejected.

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

virtual void DDS::DataReaderListener::on_subscription_matched ( DataReader ,
const SubscriptionMatchedStatus &   
)
inlinevirtual

on_subscription_matched() is called when the CoreDX DDS middleware detects that the DataReader has matched or ceased to be matched with a DataWriter.

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.