Class SubscriberListener

Class Documentation

class SubscriberListener

Class SubscriberListener, it should be used by the end user to implement specific callbacks to certain actions.


Public Functions

inline SubscriberListener()
inline virtual ~SubscriberListener()
inline virtual void onNewDataMessage(Subscriber *sub)

Virtual function to be implemented by the user containing the actions to be performed when a new Data Message is received.

Parameters:

subSubscriber

inline virtual void onSubscriptionMatched(Subscriber *sub, rtps::MatchingInfo &info)

Virtual method to be called when the subscriber is matched with a new Writer (or unmatched); i.e., when a writer publishing in the same topic is discovered.

Parameters:
  • subSubscriber

  • info – Matching information

inline virtual void on_requested_deadline_missed(Subscriber *sub, const RequestedDeadlineMissedStatus &status)

Virtual method to be called when a topic misses the deadline period

Parameters:
  • subSubscriber

  • status – The requested deadline missed status

inline virtual void on_liveliness_changed(Subscriber *sub, const LivelinessChangedStatus &status)

Method called when the liveliness status associated to a subscriber changes.

Parameters:
  • sub – The subscriber

  • status – The liveliness changed status