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. | |
void | destroy (void) |
Destroy the dispatcher;. |
The dispatcher dispatches events from a queue until it is destroyed or MamaQueue->stopDispatch () is called.
Wombat::MamaDispatcher::~MamaDispatcher | ( | void | ) |
Wombat::MamaDispatcher::MamaDispatcher | ( | void | ) |
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.
queue | The MamaQueue. |
void Wombat::MamaDispatcher::destroy | ( | void | ) |
Destroy the dispatcher;.