question

Upvotes
Accepted
37 1 1 6

EMA unsubscribe a single RIC after batch subscription thousands of RICs

A quick question, may I know how to unsubscribe a single RIC (or just several RICs) after batch subscription for thousands of RICs via EMA? on the basis that NOT initializing the consumer client.

Thanks.

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

correct typo: on the basis that NOT un-initializing the consumer client.

1 Answer

Upvotes
Accepted
20.3k 73 10 20

Hi @Frederic

Each item in the Batch has its own stream and therefore Handle allocated by the Server and API respectively. So, you would call unregister client for just the single item you want to close off the stream for.

Please refer to the EMA example 300_MP_Close - that comes with RT-SDK.

Cpp-C\Ema\Examples\Training\Consumer\300_Series\300_MP_Close

Java\Ema\Examples\src\main\java\com\refinitiv\ema\examples\training\consumer\series300\ex300_MP_Close

Typically a developer would store the handle for each item when they receive the initial RefreshMsg - in some application-level map etc. They can then lookup and access the handle when they need to close the stream.



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.

very helpful and clear, many thanks!

Click below to post an Idea Post Idea