B2BITS FIX Antenna C++  2.27.0
Public Member Functions | Protected Member Functions | List of all members
Globex::MDApplicationListener Class Referenceabstract

Represents CME Globex application listener. More...

#include <B2BITS_MDApplication.h>

+ Inheritance diagram for Globex::MDApplicationListener:
+ Collaboration diagram for Globex::MDApplicationListener:

Public Member Functions

virtual void onCompleteMessageProcessing ()
 Called after any message is processed. More...
 
virtual void onConnectToFeed (std::string const &feedId)
 Called after reader was connected to feed. More...
 
virtual void onDisconnectFromFeed (std::string const &feedId)
 Called after reader was disconnected from feed. More...
 
virtual void onError (std::string const &error)=0
 Called on errors in MDApplication. More...
 
virtual void process (Engine::FIXMessage const &msg, std::string const &channel_id)
 Called on non X, d and W messages for enable calls on X messages, use MDApplication::startListeningXMessagesByApplication. More...
 
- Public Member Functions inherited from Utils::ReferenceCounter
virtual bool addRef () const throw ()
 Increments reference counter. More...
 
virtual long getNRef () const throw ()
 Returns the current value of the reference counter. More...
 
 ReferenceCounter () throw ()
 Constructor. More...
 
virtual long release () const throw ()
 Decrements reference counter. More...
 
- Public Member Functions inherited from Globex::MDThreadManager
 MDThreadManager ()
 
virtual void onStartThread (ThreadType threadType, size_t threadIndex)
 Called on initislization of each processing thread into it's context. More...
 
virtual void onStopThread (ThreadType threadType, size_t threadIndex)
 
virtual ~MDThreadManager ()
 

Protected Member Functions

virtual ~MDApplicationListener ()
 
- Protected Member Functions inherited from Utils::ReferenceCounter
long decrement () const throw ()
 Decrements counter and returns new counter value. More...
 
long increment () const throw ()
 Increments counter and returns new counter value. More...
 
virtual ~ReferenceCounter ()
 Destructor. More...
 

Additional Inherited Members

- Public Types inherited from Globex::MDThreadManager
enum  ThreadType { MDThread, IncrementalThread, TCPReplayThread }
 

Detailed Description

Represents CME Globex application listener.

Note
Objects of this class do not put to the std::auto_ptr or other smart pointers (except specialized, example Utils::RefCounterPtr)

Constructor & Destructor Documentation

◆ ~MDApplicationListener()

virtual Globex::MDApplicationListener::~MDApplicationListener ( )
inlineprotectedvirtual

Member Function Documentation

◆ onCompleteMessageProcessing()

virtual void Globex::MDApplicationListener::onCompleteMessageProcessing ( )
inlinevirtual

Called after any message is processed.

◆ onConnectToFeed()

virtual void Globex::MDApplicationListener::onConnectToFeed ( std::string const &  feedId)
inlinevirtual

Called after reader was connected to feed.

Note
This function can be called from different thread, so used should make it thread-safe in implementation
Parameters
feedId- feed ID (channel_id%:connection_id%)

◆ onDisconnectFromFeed()

virtual void Globex::MDApplicationListener::onDisconnectFromFeed ( std::string const &  feedId)
inlinevirtual

Called after reader was disconnected from feed.

Note
This function can be called from different thread, so used should make it thread-safe in implementation
Parameters
feedId- feed ID (channel_id%:connection_id%)

◆ onError()

virtual void Globex::MDApplicationListener::onError ( std::string const &  error)
pure virtual

Called on errors in MDApplication.

Note
This function can be called from different thread, so used should make it thread-safe in implementation
Parameters
errorerror message

◆ process()

virtual void Globex::MDApplicationListener::process ( Engine::FIXMessage const &  msg,
std::string const &  channel_id 
)
inlinevirtual

Called on non X, d and W messages for enable calls on X messages, use MDApplication::startListeningXMessagesByApplication.

Note
This function can be called from different thread, so used should make it thread-safe in implementation
Parameters
msgmessage