#include <Handler.h>
Static Public Member Functions | |
static const std::string & | version () |
Manipulates ICE iMpact Multicast Price Feeds. Provides flexible services to subscribe to the multicast groups which are best suitable for certain needs.
Handler | ( | const HandlerSettings & | handlerSettings | ) |
Performs instance initialization.
handlerSettings | defines values for various settings which affect handler behavior like enabling logging during execution of the handler. |
bool active | ( | ) | const |
Indicates whether subscriptions are being handled.
void bindFeedEngine | ( | FeedEngine & | feedEngine | ) |
const TcpSettings& getTcpSettings | ( | ) | const |
Get TCP options.
void logDebug | ( | const std::string & | message | ) |
Log a debug message.
void logError | ( | const std::string & | message | ) |
Log an error message.
void logMessage | ( | const std::string & | message | ) |
Log an information message.
void logWarning | ( | const std::string & | message | ) |
Log a warning message.
void registerErrorListener | ( | ErrorListener * | listener | ) |
void registerExchangeListener | ( | ExchangeListener * | listener | ) |
void registerFeedListener | ( | FeedListener * | listener | ) |
void registerHandlerStateChangeListener | ( | HandlerStateChangeListener * | listener | ) |
void registerLogReplayListener | ( | LogReplayListener * | listener | ) |
void registerOrderBookBundleUpdateListener | ( | OrderBookBundleUpdateListener * | listener | ) |
void registerOrderBookChangeListener | ( | OrderBookChangeListener * | listener | ) |
void registerOrderBookUpdateListener | ( | OrderBookUpdateListener * | listener | ) |
void registerPacketProcessingListener | ( | PacketProcessingListener * | listener | ) |
void registerWarningListener | ( | WarningListener * | listener | ) |
void setTcpServerCredentials | ( | const std::string & | name, |
const std::string & | username, | ||
const std::string & | password | ||
) |
Set credentials for a TCP server.
name | TCP server name. |
username | Username. |
password | Password. |
void setTcpSettings | ( | const TcpSettings & | tcpSettings | ) |
Set TCP settings.
tcpSettings | New TCP Settings. |
void start | ( | const MarketSubscription & | marketSubscription | ) |
Subscribes to the given market. Subscribers are get notified about certain events through previously registered handlers. Notifications will occur until 'stop' member will be called.
marketSubscription | - subscription attributes for a particular market type. |
exception | in case of unable to establish TCP connection. |
void start | ( | const MarketSubscriptions & | marketSubscriptions | ) |
Subscribes to the given markets. Subscribers are get notified about certain events through previously registered handlers. Notifications will occur until 'stop' member will be called.
marketSubscriptions | - collection of subscriptions each entry of which defines subscription attributes for a particular market type. |
exception | in case of unable to establish TCP connection. |
void start | ( | const GroupSubscription & | groupSubscription | ) |
Subscribes to the given group. Subscribers are get notified about certain events through previously registered handlers. Notifications will occur until 'stop' member will be called.
groupSubscription | - subscription attributes for a particular multicast group. |
exception | in case of unable to establish TCP connection. |
void start | ( | const GroupSubscriptions & | groupSubscriptions | ) |
Subscribes to the given groups. Subscribers are get notified about certain events through previously registered handlers. Notifications will occur until 'stop' member will be called.
groupSubscriptions | - collection of subscriptions each entry of which defines subscription attributes for a particular group. |
exception | in case of unable to establish TCP connection. |
HandlerStates::Enum state | ( | ) | const |
Get handler state.
void stop | ( | ) |
Interrupts all subscriptions.
|
static |
Get version of Handler.