B2BITS FIX Antenna C++ 2.33.0
Loading...
Searching...
No Matches
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.
 
virtual void onConnectToFeed (std::string const &feedId)
 Called after reader was connected to feed.
 
virtual void onDisconnectFromFeed (std::string const &feedId)
 Called after reader was disconnected from feed.
 
virtual void onError (std::string const &error)=0
 Called on errors in MDApplication.
 
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.
 
- Public Member Functions inherited from Utils::ReferenceCounter
virtual bool addRef () const throw ()
 Increments reference counter.
 
virtual long getNRef () const throw ()
 Returns the current value of the reference counter.
 
 ReferenceCounter () throw ()
 Constructor.
 
virtual long release () const throw ()
 Decrements reference counter.
 
- 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.
 
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.
 
long increment () const throw ()
 Increments counter and returns new counter value.
 
virtual ~ReferenceCounter ()
 Destructor.
 

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

References process().

Referenced by process().