Class OutOfSeqMsgHandler

All Implemented Interfaces:
FIXMessageListener, SessionMessageHandler
Direct Known Subclasses:
MeffOutOfSequenceMessageHandler

public class OutOfSeqMsgHandler extends AbstractGlobalMessageHandler
Created by IntelliJ IDEA. User: Alexander_Sereda Date: 27.04.12 Time: 18:04 To change this template use File | Settings | File Templates.
  • Constructor Details

    • OutOfSeqMsgHandler

      public OutOfSeqMsgHandler()
  • Method Details

    • onNewMessage

      public void onNewMessage(FIXFieldList message)
      If incoming sequence is equals to expected the next handler will be calls.

      If incoming sequence > expected the '2' message will be send, otherwise the session is shutdown.

      Parameters:
      message - the received message.
    • setFIXSession

      public void setFIXSession(ExtendedFIXSession fixSession)
      Description copied from interface: SessionMessageHandler
      Sets the extended fix session.
      Specified by:
      setFIXSession in interface SessionMessageHandler
      Overrides:
      setFIXSession in class AbstractSessionMessageHandler
      Parameters:
      fixSession - the extended fix session
    • getSequenceManager

      protected com.epam.fixengine.session.SessionSequenceManager getSequenceManager()
    • processMessageWithExpectedSeqNum

      protected void processMessageWithExpectedSeqNum(FIXFieldList message, long incomingSeqNum)
    • processMessageWithHighSeqNum

      protected void processMessageWithHighSeqNum(FIXFieldList message, long incomingSeqNum, long expectedSeqNum)
      Process message with high seq num.

      The methods request missing messages. Note: The incoming seq num will be decremented.

      Parameters:
      message - the message
      incomingSeqNum - the incoming seq num
      expectedSeqNum - the expected seq num
    • processMessageWithLowSeqNum

      protected void processMessageWithLowSeqNum(FIXFieldList message, long incomingSeqNum, long expectedSeqNum)
      Process message with low seq num.

      Note: The incoming message will be ignored only if message has 43=Y and incoming seq num is low than expected.

      Parameters:
      message - the message
      incomingSeqNum - the incoming seq num
      expectedSeqNum - the expected seq num