Client using EMA to connect LPC, and found LPC logout every 45 seconds, but code set sleep is 60 seconds. Could you please help review the code if any incorrect input?
OmmConsumer ommConsumer = null;
try {
OmmConsumerConfig config = EmaFactory.createOmmConsumerConfig()
.host("xxxx")
.username("xxxx");
ommConsumer = EmaFactory.createOmmConsumer(config);
ommConsumer.registerClient(getPBOCReqMsg(), client);
TimeUnit.SECONDS.sleep(60L);
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
} finally {
if (ommConsumer != null) {
ommConsumer.uninitialize();
}
}