I am new to using the Java based RFA / OMM api (we currently rely on the jsfc apis)
Looking through the examples on how to handle ItemSubscriptions, I found an interesting piece of code
if (event.getType() != Event.OMM_ITEM_EVENT)
{
System.out.println("ERROR: " + _className + " Received an unsupported Event type."); consumerComponent.cleanup();
return;
}
if I understand this correctly , if an unsupported event type is received, we just shut down the consumer which could affect real time streaming of data. Is this the recommended handling of this kind of event or could we just ignore the event and go on processing next event
My concern is that we shut down consumers altogether, which is unacceptable. We could try restarting them, but if we continuously get the same condition, we could end up in a loop of starting and shutting consumers.
Has anyone encountered this issue before ? Any suggestions are welcome