Xetra MDI Market Data Handler class. More...
Public Member Functions | |
Handler (const HandlerSettings &settings) | |
Performs instance initialization. More... | |
virtual | ~Handler () |
Finalizes the Handler. | |
void | registerErrorListener (ErrorListener *listener) |
Assigns listener for errors occurred while executing handler. More... | |
void | registerWarningListener (WarningListener *listener) |
Assigns listener for warnings occurred while executing handler. More... | |
void | registerHandlerStateListener (HandlerStateListener *listener) |
Assigns listener for state change events occurred while executing handler. More... | |
void | registerStateChangesFeedListener (StateChangesFeedListener *listener) |
Assigns a listener for State Changes Feed messages It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state. More... | |
void | registerTickerFeedListener (TickerFeedListener *listener) |
Assigns a listener for Ticker feed messages It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state. More... | |
void | registerMarketDataFeedListener (MarketDataFeedListener *listener) |
Assigns a listener for Market Data Feed messages It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state. More... | |
void | start () |
Start the handler. More... | |
void | start (const ReplayOptions &options) |
Starts replaying previously logged data. | |
void | stop (bool wait) |
Stop handler. | |
HandlerState::Enum | state () const |
Returns handler state. | |
void | log (LogLevel::Enum logLevel, const char *logMessage, size_t length) |
Logs the given user-level message to the handler log. | |
void | log (LogLevel::Enum logLevel, const char *logMessage) |
Logs the given user-level message to the handler log. | |
void | log (LogLevel::Enum logLevel, const std::string &str) |
Logs the given user-level message to the handler log. | |
const char * | licenseExpirationDate () const |
Returns the license expiration date. | |
Static Public Member Functions | |
static const char * | version () |
Returns Handler's version. | |
Xetra MDI Market Data Handler class.
Handler | ( | const HandlerSettings & | settings | ) |
Performs instance initialization.
mode | defines the data channel mode to be used |
settings | defines values for various options which affect handler behavior like enabling logging during execution of the handler. |
void registerErrorListener | ( | ErrorListener * | listener | ) |
Assigns listener for errors occurred while executing handler.
It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
OperationException | if handler not disconnected |
void registerHandlerStateListener | ( | HandlerStateListener * | listener | ) |
Assigns listener for state change events occurred while executing handler.
It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
OperationException | if handler not disconnected. |
void registerMarketDataFeedListener | ( | MarketDataFeedListener * | listener | ) |
Assigns a listener for Market Data Feed messages It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
OperationException | if handler not disconnected |
void registerStateChangesFeedListener | ( | StateChangesFeedListener * | listener | ) |
Assigns a listener for State Changes Feed messages It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
OperationException | if handler not disconnected |
void registerTickerFeedListener | ( | TickerFeedListener * | listener | ) |
Assigns a listener for Ticker feed messages It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
OperationException | if handler not disconnected |
void registerWarningListener | ( | WarningListener * | listener | ) |
Assigns listener for warnings occurred while executing handler.
It's permissible to change the listener multiple times during handler's life-time, but only when handler is in disconnected state.
OperationException | if handler not disconnected |
void start | ( | ) |
Start the handler.
std::exception | in case of unable to start. |