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.
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