question

Upvotes
Accepted
3 0 2 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.

@khushboo.kumari

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question or could you provide the information required for further investigation, please?

Thanks,
AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,
AHS

1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 87 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.