migratorydata::MigratoryDataListener

The implementation of this interface will handle the messages received from the server for the subscribed subjects as well as various status notifications. More…

#include <client-cpp/MigratoryDataListener.h>

Public Functions

Name
virtual void onMessage(const MigratoryDataMessage & message) =0
This method handles the real-time messages received from a MigratoryData server for the subscribed subjects.
virtual void onStatus(const std::string & status, std::string & info) =0
This method handles the status notifications.

Detailed Description

class migratorydata::MigratoryDataListener;

The implementation of this interface will handle the messages received from the server for the subscribed subjects as well as various status notifications.

Use the API method MigratoryDataClient.setListener() to register your listener implementation.

Public Functions Documentation

function onMessage

virtual void onMessage(
    const MigratoryDataMessage & message
) =0

This method handles the real-time messages received from a MigratoryData server for the subscribed subjects.

Parameters:

function onStatus

virtual void onStatus(
    const std::string & status,
    std::string & info
) =0

This method handles the status notifications.

Parameters:

  • status The type of the status notification (see the possible values above).
  • info The detail information of the status notification.

The possible values of the status parameter are: