Package com.epam.fixaj.meff
Class OutOfSeqMsgHandler
java.lang.Object
com.epam.fixengine.session.messagehandler.AbstractSessionMessageHandler
com.epam.fixengine.session.messagehandler.AbstractGlobalMessageHandler
com.epam.fixaj.meff.OutOfSeqMsgHandler
- All Implemented Interfaces:
FIXMessageListener
,SessionMessageHandler
- Direct Known Subclasses:
MeffOutOfSequenceMessageHandler
Created by IntelliJ IDEA.
User: Alexander_Sereda
Date: 27.04.12
Time: 18:04
To change this template use File | Settings | File Templates.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.epam.fixengine.session.SessionSequenceManager
void
onNewMessage
(FIXFieldList message) If incoming sequence is equals to expected the next handler will be calls.protected void
processMessageWithExpectedSeqNum
(FIXFieldList message, long incomingSeqNum) protected void
processMessageWithHighSeqNum
(FIXFieldList message, long incomingSeqNum, long expectedSeqNum) Process message with high seq num.protected void
processMessageWithLowSeqNum
(FIXFieldList message, long incomingSeqNum, long expectedSeqNum) Process message with low seq num.void
setFIXSession
(ExtendedFIXSession fixSession) Sets the extended fix session.Methods inherited from class com.epam.fixengine.session.messagehandler.AbstractGlobalMessageHandler
callNextHandler, getNext, setNext
Methods inherited from class com.epam.fixengine.session.messagehandler.AbstractSessionMessageHandler
getFIXSession, logErrorToSession, logWarnToSession
-
Constructor Details
-
OutOfSeqMsgHandler
public OutOfSeqMsgHandler()
-
-
Method Details
-
onNewMessage
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
Description copied from interface:SessionMessageHandler
Sets the extended fix session.- Specified by:
setFIXSession
in interfaceSessionMessageHandler
- Overrides:
setFIXSession
in classAbstractSessionMessageHandler
- Parameters:
fixSession
- the extended fix session
-
getSequenceManager
protected com.epam.fixengine.session.SessionSequenceManager getSequenceManager() -
processMessageWithExpectedSeqNum
-
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 messageincomingSeqNum
- the incoming seq numexpectedSeqNum
- 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 messageincomingSeqNum
- the incoming seq numexpectedSeqNum
- the expected seq num
-