the method OmmConsumer.registerClient returns a long value (id) that can be used later to unregister, etc. Can this value be retrieved from either the statusMessage or event received in OmmConsumerClient.onStatusMsg(StatusMsg msg, OmmConsumerEvent event) ?
You can get the handle from the OmmConsumerEvent using
in the onStatusMsg Callback.
Note that if the StreamState of the item is already CLOSED when you receive the StatusMsg then you do not need to call unregisterClient - as the stream has already been closed off.