OnixS ICE iMpact Multicast Feed Handler for C++  3.13.0.0
Public Member Functions | Static Public Member Functions | List of all members
Handler Class Reference

Manipulates ICE iMpact Multicast Price Feeds. More...

Public Member Functions

 Handler (const HandlerSettings &handlerSettings)
 Performs instance initialization. More...
 
virtual ~Handler ()
 Finalizes the Handler.
 
std::string licenseExpirationDate () const
 Date when license for the Handler will expire.
 
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 registerOrderBookChangeListener (OrderBookChangeListener *listener)
 Registers the order book change listener. More...
 
void registerOrderBookUpdateListener (OrderBookUpdateListener *listener)
 Registers the order book update listener. More...
 
void registerOrderBookBundleUpdateListener (OrderBookBundleUpdateListener *listener)
 Registers the order book bundle update listener. More...
 
void registerErrorListener (ErrorListener *listener)
 Registers the error listener. More...
 
void registerWarningListener (WarningListener *listener)
 Registers the warning listener. More...
 
void registerExchangeListener (ExchangeListener *listener)
 Registers the Exchange listener. More...
 
void registerFeedListener (FeedListener *listener)
 Registers the feed listener. More...
 
void registerHandlerStateChangeListener (HandlerStateChangeListener *listener)
 Registers the Handler state change listener. More...
 
void registerLogReplayListener (LogReplayListener *listener)
 Registers the log replay listener. More...
 
void start (const MarketSubscription &marketSubscription)
 Subscribes to the given market. More...
 
void start (const MarketSubscriptions &marketSubscriptions)
 Subscribes to the given markets. More...
 
void stop ()
 Interrupts all subscriptions.
 
bool active () const
 Indicates whether subscriptions are being handled.
 
HandlerStates::Enum state () const
 Get handler state.
 
void setTcpSettings (const TcpSettings &tcpSettings)
 Set TCP settings. More...
 
const TcpSettings & getTcpSettings () const
 Get TCP options. More...
 

Static Public Member Functions

static const std::string & version ()
 Get version of Handler.
 

Detailed Description

Manipulates ICE iMpact Multicast Price Feeds.

Provides flexible services to subscribe to the multicast groups which are best suitable for certain needs.

Constructor & Destructor Documentation

Handler ( const HandlerSettings &  handlerSettings)

Performs instance initialization.

Parameters
handlerSettingsdefines values for various settings which affect handler behavior like enabling logging during execution of the handler.

Member Function Documentation

const TcpSettings& getTcpSettings ( ) const

Get TCP options.

Returns
TCP settings.
void registerErrorListener ( ErrorListener *  listener)

Registers the error listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerExchangeListener ( ExchangeListener *  listener)

Registers the Exchange listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerFeedListener ( FeedListener *  listener)

Registers the feed listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerHandlerStateChangeListener ( HandlerStateChangeListener *  listener)

Registers the Handler state change listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerLogReplayListener ( LogReplayListener *  listener)

Registers the log replay listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerOrderBookBundleUpdateListener ( OrderBookBundleUpdateListener *  listener)

Registers the order book bundle update listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerOrderBookChangeListener ( OrderBookChangeListener *  listener)

Registers the order book change listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerOrderBookUpdateListener ( OrderBookUpdateListener *  listener)

Registers the order book update listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void registerWarningListener ( WarningListener *  listener)

Registers the warning listener.

Only single instance of listener can be associated with the Handler. Registering new listener removes previous one.

Listeners are to be associated before starting market data processing.

Exceptions
exceptionin case of Handler is in active state.
void setTcpSettings ( const TcpSettings &  tcpSettings)

Set TCP settings.

Parameters
tcpSettingsNew 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.

Parameters
marketSubscription- subscription attributes for a particular market type.
Exceptions
exceptionin 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.

Parameters
marketSubscriptions- collection of subscriptions each entry of which defines subscription attributes for a particular market type.
Exceptions
exceptionin case of unable to establish TCP connection.