...s handle/RIC?
Whenthe application unsubscribes an item, we continue to get updates for an itemafter that. Is there anything in the event itself which will tell us that wehave already unsubscribed to this handle/RIC?
Once application unsubscribes an item via unregisterClient call, RFA might dispatchadditional events that were in flight due to race condition. To determine ifthe item unsubscription is completed and there is no longer event received,application needs to register for Completion event. The Completion event is thefinal event generated by RFA for the unregistered item.
However, if event stream is closed by provider, the Completionevent will not be generated. Application should call the isEventStreamClosed functionon events to determine whether the event stream is closed or not. TheisEventStreamClosed function call on a final event including the Completionevent always returns true.
The Completion event can be set via the last parameter on theSession::createOMMConsumer() method.
virtualOMMConsumer* rfa::sessionLayer::Session::createOMMConsumer ( const rfa::common::RFA_String& name, bool wCompEvents = false )
Below is the related information in the RFA 7.6 Developers Guidedocument.