synchronized void start() { if (reconnectFuture == null) { // The following logon reenabled the session. The actual logon will take // place as a side-effect of the session timer task (not the reconnect task). reconnectTask.getFixSession().logon(); // only enables the session reconnectFuture = executor .scheduleWithFixedDelay(reconnectTask, 0, 1, TimeUnit.SECONDS); } }
synchronized void start() { if (reconnectFuture == null) { // The following logon reenabled the session. The actual logon will take // place as a side-effect of the session timer task (not the reconnect task). reconnectTask.getFixSession().logon(); // only enables the session reconnectFuture = executor .scheduleWithFixedDelay(reconnectTask, 0, 1, TimeUnit.SECONDS); } }
synchronized void start() { if (reconnectFuture == null) { // The following logon reenabled the session. The actual logon will take // place as a side-effect of the session timer task (not the reconnect task). reconnectTask.getFixSession().logon(); // only enables the session reconnectFuture = executor .scheduleWithFixedDelay(reconnectTask, 0, 1, TimeUnit.SECONDS); } }
public void logon() { logInvocation("logon"); session.logon(); }
@Override public void onCreate(SessionID sessionId) { logger.info("Session created: {}", sessionId); this.sessionId = sessionId; Session.lookupSession(sessionId).logon(); }
public void logon() { logInvocation("logon"); session.logon(); }
public void logon() { logInvocation("logon"); session.logon(); }
public synchronized void logon() { if (!initiatorStarted) { try { initiator.start(); initiatorStarted = true; } catch (Exception e) { log.error("Logon failed", e); } } else { for (SessionID sessionId : initiator.getSessions()) { Session.lookupSession(sessionId).logon(); } } }