question

Upvotes
Accepted
33 9 12 29

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 512.0 KiB each and 1.0 MiB total.

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

1 Answer

· Write an Answer
Upvotes
Accepted
25.3k 87 12 25

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 512.0 KiB each and 1.0 MiB total.

very helpful and clear, many thanks!

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.