Is there any example of non blocking consumer application in EMA?

Is there any example of non blocking consumer application in EMA?

Best Answer

  • Hi @khushboo.kumari

    Can you please expand on your question - not sure I understand?

    The majority of the Consumer examples we provided are fairly simple in nature - usually demonstrating a particular functionality or behaviour of EMA. Therefore, the majority of them have a 60sec sleep in the main() - to stop the application from exiting and thereby allow the example to log in to the server and receive some data back / perform whatever other operation it is trying to demonstrate.

    Some examples don't use the sleep() method, rather they set the dispatch model to UserDispatch and then run a loop for 60secs to call dispatch manually (rather than letting the API do it) e.g. example130 UserDisp

    You can read more about User Dispatching in the EMA DevGuide which is included with the RT-SDK.