What is the difference between StreamState ==ommstate.Closed and StreamState ==ommstate.ClosedRecover?
How should an EMA consumer handle a MarketPrice Refresh or MarketPrice Status message received with the state component publishing StreamState ==ommstate.ClosedRecover?
ommstate.Closed means data is not available and is not likely to become available.
An example for Closed state is when you request invalid name. Data will not be available unless you change the name.
ommstate.ClosedRecover means data is currently not available but can be recovered at a later time.
By default, an EMA consumer should never received this status because TREP will attempt to recover data on EMA’s behalf.
To received closed recover status, EMA consumer must override the default login request by using the OmmConsumerConfig.addAdminMsg().
And If you wish to handle it, then you could just treat it as a closed status but EMA consumer can attempt to re-request at a later time using the same request message.