Definition at line 50 of file Handler.h.
◆ Handler()
Initializes instance according to given settings.
◆ ~Handler()
Finalizes instance usage.
◆ bindFeedEngine()
Binds Feed Engine to the Handler.
Handler must be in stopped state.
- Exceptions
-
std::exception | in case when handler is not in configurable state. |
◆ bindLogger()
void bindLogger |
( |
Logger & | logger | ) |
|
Binds Logging Service to the Handler.
Handler must be in stopped state.
- Exceptions
-
std::exception | in case when handler is not in configurable state. |
◆ bindTcpRecovery()
Binds TCP Recovery Service to the Handler.
Handler must be in stopped state.
- Exceptions
-
std::exception | in case when handler is not in configurable state. |
◆ clearInstrumentCache()
void clearInstrumentCache |
( |
| ) |
|
Erases instrument definitions cache if used.
Handler will produce a new cache at next start.
◆ logger()
◆ registerFeedListener()
Registers feed event listener.
Only single instance of listener can be associated with the Handler. Registering new listener removes previous one. Listener instance lifetime shall be not less than Handler's one.
Listeners are to be associated before starting market data processing - Handler must be in stopped state.
- Exceptions
-
std::exception | in case when handler is not in configurable state. |
◆ registerListener()
Registers Handler events listener.
Only single instance of listener can be associated with the Handler. Registering new listener removes previous one. Listener instance lifetime shall be not less than Handler's one.
Listeners are to be associated before starting market data processing - Handler must be in stopped state.
- Exceptions
-
std::exception | in case when handler is not in configurable state. |
◆ registerMarketDataListener()
Registers market data processing listener.
Only single instance of listener can be associated with the Handler. Registering new listener removes previous one. Listener instance lifetime shall be not less than Handler's one.
Listeners are to be associated before starting market data processing - Handler must be in stopped state.
- Exceptions
-
std::exception | in case when handler is not in configurable state. |
◆ replay()
Processes market data stored in log files according to specified settings.
◆ selectInstruments()
Filters instruments whose market data is to be processed and events are to be fired by the Handler.
- Warning
- Instrument selection can be updated only when market data processing is not performed by the Handler or upon successful instrument recovery completion.
◆ settings()
Configuration settings of given instance.
◆ start()
Starts market data processing according to given parameters.
◆ stop()