EMA C++ Performace Tools Guide : 10 Performance Best Practices : 10.2 Enterprise Message API Best Practices
 
10.2 Enterprise Message API Best Practices
10.2.1 dispatch
The dispatch()method is used to read messages from network. The application can call this method by using the user thread or API dispatching thread depending on the operational model of OmmConsumer and OmmProvider. The application thread or API dispatching thread must always call the dispatch()method to receive messages via callback methods and process these messages. Application can configure the MaxDispatchCountApiThread and MaxDispatchCountUserThread parameters to specify maximum number of messages that can be dispatched in a single call of the dispatch()method before taking a break.