#include <Connectivity_MDInterfaces.h>
MarketDataSession class provides API's to update subscription/unsubscription states and helper API's to clean subscriptions
virtual void com::softwareag::marketdata::MarketDataSession::ClearData |
( |
| ) |
|
|
pure virtual |
Clear the internal source data
virtual void com::softwareag::marketdata::MarketDataSession::ClearSourceData |
( |
int64_t |
sourceId | ) |
|
|
pure virtual |
Clear the current data for a specific source Id.
This will clear the current data NOT the libraries LAST data. You need to call a Commit() to send the clear on to the correlator and clear the LAST data. Or use it when recieving a snapshot.
- Parameters
-
sourceId | The source Id to clear the data is for. |
virtual void com::softwareag::marketdata::MarketDataSession::ClearSubscriptionData |
( |
const std::string & |
subKey | ) |
|
|
pure virtual |
Clear the current data for a specific subscription key.
This will clear the current data NOT the libraries LAST data. You need to call a Commit() to send the clear on to the correlator and clear the LAST data. Or use it when recieving a snapshot.
- Parameters
-
subKey | The subscription key to clear the data is for. |
Get publisher handlers for given stream type
- Parameters
-
virtual void com::softwareag::marketdata::MarketDataSession::RemoveSourceSubscriptions |
( |
int64_t |
sourceId | ) |
|
|
pure virtual |
Remove subscriptions for a specific source id, in case of errors.
- Parameters
-
sourceId | The source Id to remove. |
virtual void com::softwareag::marketdata::MarketDataSession::RemoveSubscription |
( |
const std::string & |
subKey | ) |
|
|
pure virtual |
Remove subscriptions for a specific subscription key, in case of errors.
- Parameters
-
subKey | The subscription key to remove. |
virtual void com::softwareag::marketdata::MarketDataSession::RemoveSubscriptions |
( |
| ) |
|
|
pure virtual |
Remove all subscriptions, in case of errors.
virtual void com::softwareag::marketdata::MarketDataSession::setConnectFailed |
( |
const std::string & |
subKey, |
|
|
const std::string & |
description, |
|
|
TimestampSetPtr |
tss |
|
) |
| |
|
pure virtual |
Callback when a Connection fails in response to AP_MDM_AdapterInterface::connect().
- Parameters
-
subKey | The unique subscription key for this connection. |
description | An error message explaining why the connection failed. |
tss | The timestamp set of the event. |
virtual void com::softwareag::marketdata::MarketDataSession::setConnectSuccess |
( |
const std::string & |
subKey, |
|
|
TimestampSetPtr |
tss |
|
) |
| |
|
pure virtual |
Callback when a Connection is successful in response to AP_MDM_AdapterInterface::connect().
- Parameters
-
subKey | The unique subscription key for this connection. |
tss | The timestamp set of the event. |
virtual void com::softwareag::marketdata::MarketDataSession::setDisconnectFailed |
( |
const std::string & |
subKey, |
|
|
const std::string & |
description, |
|
|
TimestampSetPtr |
tss |
|
) |
| |
|
pure virtual |
Callback when a Disconnect fails in response to AP_MDM_AdapterInterface::disconnect().
- Parameters
-
subKey | The unique subscription key for this disconnection. |
description | An error message explaining why the disconnection failed. |
tss | The timestamp set of the event. |
virtual void com::softwareag::marketdata::MarketDataSession::setDisconnectSuccess |
( |
const std::string & |
subKey, |
|
|
TimestampSetPtr |
tss |
|
) |
| |
|
pure virtual |
Callback when a Disconnect is successful in response to AP_MDM_AdapterInterface::disconnect().
- Parameters
-
subKey | The unique subscription key for this disconnection. |
tss | The timestamp set of the event. |
virtual void com::softwareag::marketdata::MarketDataSession::SubscriptionCommit |
( |
const std::string & |
subKey, |
|
|
TimestampSetPtr |
tss |
|
) |
| |
|
pure virtual |
Commit any Market Data updates made through the API for a specific subscription key, process the data and sent a update event to the correlator.
- Parameters
-
subKey | The subscription key to commit/process the data for. |
tss | The timestamp set of the event. |
The documentation for this class was generated from the following file: