OpenMAMA C++ API
Wombat::MamaDispatcher Class Reference

The dispatcher dispatches events from a queue until it is destroyed or MamaQueue->stopDispatch () is called. More...

#include <MamaDispatcher.h>

Public Member Functions

 ~MamaDispatcher (void)
 
 MamaDispatcher (void)
 
void create (MamaQueue *queue)
 Create a mamaDispatcher. More...
 
void destroy (void)
 Destroy the dispatcher;. More...
 

Detailed Description

The dispatcher dispatches events from a queue until it is destroyed or MamaQueue->stopDispatch () is called.

Constructor & Destructor Documentation

§ ~MamaDispatcher()

Wombat::MamaDispatcher::~MamaDispatcher ( void  )

§ MamaDispatcher()

Wombat::MamaDispatcher::MamaDispatcher ( void  )

Member Function Documentation

§ create()

void Wombat::MamaDispatcher::create ( MamaQueue queue)

Create a mamaDispatcher.

The dispatcher spawns a thread to dispatch events from a queue. It will continue to dispatch events until it is destroyed or mamaQueue_stopDispatch is called.

Only a single dispatcher can be created for a given queue. Attempting to create multiple dispatchers for a queue will result in and error. Dispatching message from a single queue with multiple threads results in messages arriving out of order and sequence number gaps for market data subscriptions.

Parameters
queueThe MamaQueue.

§ destroy()

void Wombat::MamaDispatcher::destroy ( void  )

Destroy the dispatcher;.