/** * No actual resend request has occurred but at logon we populated tag 789 so that the other side knows we * are missing messages without an explicit resend request and should immediately reply with the missing * messages. * * This is expected to be called only in the scenario where target is too high on logon and tag 789 is supported. */ public void setResetRangeFromLastExpectedLogonNextSeqNumLogon() { synchronized (lock) { // we have already requested all msgs from nextExpectedMsgSeqNum to infinity setResendRange(getLastExpectedLogonNextSeqNum(), 0); // clean up the variable (not really needed) setLastExpectedLogonNextSeqNum(0); } }
/** * No actual resend request has occurred but at logon we populated tag 789 so that the other side knows we * are missing messages without an explicit resend request and should immediately reply with the missing * messages. * * This is expected to be called only in the scenario where target is too high on logon and tag 789 is supported. */ public void setResetRangeFromLastExpectedLogonNextSeqNumLogon() { synchronized (lock) { // we have already requested all msgs from nextExpectedMsgSeqNum to infinity setResendRange(getLastExpectedLogonNextSeqNum(), 0); // clean up the variable (not really needed) setLastExpectedLogonNextSeqNum(0); } }
/** * No actual resend request has occurred but at logon we populated tag 789 so that the other side knows we * are missing messages without an explicit resend request and should immediately reply with the missing * messages. * * This is expected to be called only in the scenario where target is too high on logon and tag 789 is supported. */ public void setResetRangeFromLastExpectedLogonNextSeqNumLogon() { synchronized (lock) { // we have already requested all msgs from nextExpectedMsgSeqNum to infinity setResendRange(getLastExpectedLogonNextSeqNum(), 0); // clean up the variable (not really needed) setLastExpectedLogonNextSeqNum(0); } }
getLog().onEvent("Responding to Logon request with tag 789=" + expectedTargetNum); logon.setInt(NextExpectedMsgSeqNum.FIELD, expectedTargetNum); state.setLastExpectedLogonNextSeqNum(expectedTargetNum); } else { getLog().onEvent("Responding to Logon request");
getLog().onEvent("Responding to Logon request with tag 789=" + expectedTargetNum); logon.setInt(NextExpectedMsgSeqNum.FIELD, expectedTargetNum); state.setLastExpectedLogonNextSeqNum(expectedTargetNum); } else { getLog().onEvent("Responding to Logon request");
private boolean generateLogon() throws IOException { final Message logon = messageFactory.create(sessionID.getBeginString(), MsgType.LOGON); logon.setInt(EncryptMethod.FIELD, 0); logon.setInt(HeartBtInt.FIELD, state.getHeartBeatInterval()); if (sessionID.isFIXT()) { logon.setField(DefaultApplVerID.FIELD, senderDefaultApplVerID); } if (isStateRefreshNeeded(MsgType.LOGON)) { getLog().onEvent("Refreshing message/state store at logon"); getStore().refresh(); stateListener.onRefresh(); } if (resetOnLogon) { resetState(); } if (isResetNeeded()) { logon.setBoolean(ResetSeqNumFlag.FIELD, true); } state.setLastReceivedTime(SystemTime.currentTimeMillis()); state.clearTestRequestCounter(); state.setLogonSent(true); logonAttempts++; if (enableNextExpectedMsgSeqNum) { final int nextExpectedMsgNum = getExpectedTargetNum(); logon.setInt(NextExpectedMsgSeqNum.FIELD, nextExpectedMsgNum); state.setLastExpectedLogonNextSeqNum(nextExpectedMsgNum); } return sendRaw(logon, 0); }
private boolean generateLogon() throws IOException { final Message logon = messageFactory.create(sessionID.getBeginString(), MsgType.LOGON); logon.setInt(EncryptMethod.FIELD, 0); logon.setInt(HeartBtInt.FIELD, state.getHeartBeatInterval()); if (sessionID.isFIXT()) { logon.setField(DefaultApplVerID.FIELD, senderDefaultApplVerID); } if (isStateRefreshNeeded(MsgType.LOGON)) { getLog().onEvent("Refreshing message/state store at logon"); getStore().refresh(); stateListener.onRefresh(); } if (resetOnLogon) { resetState(); } if (isResetNeeded()) { logon.setBoolean(ResetSeqNumFlag.FIELD, true); } state.setLastReceivedTime(SystemTime.currentTimeMillis()); state.clearTestRequestCounter(); state.setLogonSent(true); logonAttempts++; if (enableNextExpectedMsgSeqNum) { final int nextExpectedMsgNum = getExpectedTargetNum(); logon.setInt(NextExpectedMsgSeqNum.FIELD, nextExpectedMsgNum); state.setLastExpectedLogonNextSeqNum(nextExpectedMsgNum); } return sendRaw(logon, 0); }
getLog().onEvent("Responding to Logon request with tag 789=" + expectedTargetNum); logon.setInt(NextExpectedMsgSeqNum.FIELD, expectedTargetNum); state.setLastExpectedLogonNextSeqNum(expectedTargetNum); } else { getLog().onEvent("Responding to Logon request");
private boolean generateLogon() throws IOException { final Message logon = messageFactory.create(sessionID.getBeginString(), MsgType.LOGON); logon.setInt(EncryptMethod.FIELD, 0); logon.setInt(HeartBtInt.FIELD, state.getHeartBeatInterval()); if (sessionID.isFIXT()) { logon.setField(DefaultApplVerID.FIELD, senderDefaultApplVerID); } if (isStateRefreshNeeded(MsgType.LOGON)) { getLog().onEvent("Refreshing message/state store at logon"); getStore().refresh(); stateListener.onRefresh(); } if (resetOnLogon) { resetState(); } if (isResetNeeded()) { logon.setBoolean(ResetSeqNumFlag.FIELD, true); } state.setLastReceivedTime(SystemTime.currentTimeMillis()); state.clearTestRequestCounter(); state.setLogonSent(true); logonAttempts++; if (enableNextExpectedMsgSeqNum) { final int nextExpectedMsgNum = getExpectedTargetNum(); logon.setInt(NextExpectedMsgSeqNum.FIELD, nextExpectedMsgNum); state.setLastExpectedLogonNextSeqNum(nextExpectedMsgNum); } return sendRaw(logon, 0); }