question

Upvotes
Accepted
7 3 4 6

While Using EMA Batch Request program get Closed automaticaly after some responces??

elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-api
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.

Upvotes
Accepted
25.3k 87 12 25

hi @nishikarale

Do you mean the app stops running after 60 secs?

If so, this is because of the sleep( 60000 ); in the main() method

The main thread sleeps for 60 before the application terminates - this is because it is just an example application and so we set a limited runtime.

If you were writing your own application, you would terminate as and when appropriate to your implementation.

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.

Upvotes
4.4k 10 6 9

Hi @nishikarale

Could you provide more information?

Do you mean program got closed message? Do you have the status text of the close?

Please note that, the way batch request work is after the consumer sends a batch request to the ADS, the ADS responds by closing the batch request stream and then sending each requested items on new streams.

  Consumer    |                |     ADS
-----------------------------------------------
Batch Request | ---Stream 1--> |
              |                |
              | <--Stream 1--- | Close Stream 1
              |                |
              | <--Stream 2--- | Item 1 Refresh
              | <--Stream 3--- | Item 2 Refresh
              | <--Stream 4--- | Item 3 Refresh
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.