public void onRefreshMsg(RefreshMsg refreshMsg, OmmConsumerEvent event) { System.out.println("Received Login Refresh Message\n"); System.out.println( refreshMsg ); System.out.println(); /* Get the handle from the event and save it for a future reissue */ handle = event.handle(); /* Get the time to reissue from the refresh and save it */ LoginRefresh loginRefresh = EmaFactory.Domain.createLoginRefresh().message(refreshMsg); if(loginRefresh.hasAuthenticationTTReissue()) ttReissue = loginRefresh.authenticationTTReissue(); }
public void onRefreshMsg(RefreshMsg refreshMsg, OmmProviderEvent event) { System.out.println("Received Login Refresh Message\n"); System.out.println( refreshMsg ); System.out.println(); /* Get the handle from the event and save it for a future reissue */ handle = event.handle(); LoginRefresh loginRefresh = EmaFactory.Domain.createLoginRefresh().message(refreshMsg); if(loginRefresh.hasAuthenticationTTReissue()) ttReissue = loginRefresh.authenticationTTReissue(); }
loginRefresh.authenticationTTReissue(2); assertEquals(2, loginRefresh.authenticationTTReissue());
loginRefresh.supportStandby(true); loginRefresh.supportEnhancedSymbolList(EmaRdm.SUPPORT_SYMBOL_LIST_DATA_STREAMS); loginRefresh.authenticationTTReissue(10); loginRefresh.authenticationErrorCode(10); loginRefresh.authenticationErrorText("ErrorText"); assertEquals(EmaRdm.SUPPORT_SYMBOL_LIST_DATA_STREAMS, loginRefresh.supportEnhancedSymbolList()); assertEquals(true, loginRefresh.hasAuthenticationTTReissue()); assertEquals(10, loginRefresh.authenticationTTReissue()); assertEquals(true, loginRefresh.hasAuthenticationErrorCode()); assertEquals(10, loginRefresh.authenticationErrorCode());
assertEquals(2, loginRefresh.authenticationTTReissue());