public void process(Message message, SessionID sessionID) { Message echo = (Message)message; PossResend possResend = new PossResend(false); if (message.getHeader().isSetField(possResend)) message.getHeader().getField(possResend); ClOrdID clOrdID = new ClOrdID(); message.getField(clOrdID); Pair pair = new Pair(clOrdID, sessionID); if (possResend.getValue() == true) { if (orderIDs.Contains(pair)) return; } if(!orderIDs.Contains(pair)) orderIDs.Add(pair, pair); try { Session.sendToTarget(echo, sessionID); } catch (SessionNotFound) { } }
public void process(Message message, SessionID sessionID) { Message echo = (Message)message; PossResend possResend = new PossResend(false); if (message.getHeader().isSetField(possResend)) { message.getHeader().getField(possResend); } ClOrdID clOrdID = new ClOrdID(); message.getField(clOrdID); Pair pair = new Pair(clOrdID, sessionID); if (possResend.getValue() == true) { if (orderIDs.Contains(pair)) { return; } } if (!orderIDs.Contains(pair)) { orderIDs.Add(pair, pair); } try { Session.sendToTarget(echo, sessionID); } catch (SessionNotFound) { } }