question

Upvotes
Accepted
3 0 3 12

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

elektronelektron-sdkema-apirrtrefinitiv-real-time
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 89 12 25

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.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.