question

Upvotes
Accepted
7 2 0 5

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

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-api
icon clock
10 |1500

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

Upvotes
Accepted
20.3k 73 10 20

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 5.0 MiB each and 10.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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea