Class OutOfSequenceMessageHandler
The out of sequence global message handler.
Inheritance
Inherited Members
Namespace: FixAntenna.FixEngine.Session.MessageHandler.Global
Assembly: FixAntenna.Core.dll
Syntax
public class OutOfSequenceMessageHandler : AbstractGlobalMessageHandler, ISessionMessageHandler, IFixMessageListener
Fields
IncludeNextExpectedMsgSeqNum
Declaration
protected bool IncludeNextExpectedMsgSeqNum
Field Value
Type | Description |
---|---|
System.Boolean |
Methods
GetSequenceManager()
Declaration
public virtual ISessionSequenceManager GetSequenceManager()
Returns
Type | Description |
---|---|
ISessionSequenceManager |
IsMsgShouldBeProcessedAnyway(FixMessage)
Returns true if message should be processed anyway.
The methods returns true only for next message types: logon, logout, SR, RR.
- logon - will be processed anyway if logon has 34=1 and 141=Y.
- logout - will be processed anyway if session has
SessionState.WAITING_FOR_LOGOFF
. - SR - will be processed if 123=N or 123 does not exist.
- RR - will be processed if 43=Y.
Declaration
public virtual bool IsMsgShouldBeProcessedAnyway(FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the message |
Returns
Type | Description |
---|---|
System.Boolean | boolean |
IsSeqResetAndNewSeqNoIsLessThanExpected(FixMessage, Int64)
Returns true if message is sequence reset and its NewSeqNo is less than expected.
Declaration
public static bool IsSeqResetAndNewSeqNoIsLessThanExpected(FixMessage message, long expectedSeqNum)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the message |
System.Int64 | expectedSeqNum |
Returns
Type | Description |
---|---|
System.Boolean |
OnNewMessage(FixMessage)
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.
Declaration
public override void OnNewMessage(FixMessage message)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the received message. |
Overrides
ProcessMessageWithExpectedSeqNum(FixMessage, Int64)
Declaration
public virtual void ProcessMessageWithExpectedSeqNum(FixMessage message, long incomingSeqNum)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | |
System.Int64 | incomingSeqNum |
ProcessMessageWithHighSeqNum(FixMessage, Int64, Int64)
Process message with high seq num.
The methods request missing messages. Note: The incoming seq num will be decremented.
Declaration
public virtual void ProcessMessageWithHighSeqNum(FixMessage message, long incomingSeqNum, long expectedSeqNum)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the message |
System.Int64 | incomingSeqNum | the incoming seq num |
System.Int64 | expectedSeqNum | the expected seq num |
ProcessMessageWithLowSeqNum(FixMessage, Int64, Int64)
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.
Declaration
public virtual void ProcessMessageWithLowSeqNum(FixMessage message, long incomingSeqNum, long expectedSeqNum)
Parameters
Type | Name | Description |
---|---|---|
FixMessage | message | the message |
System.Int64 | incomingSeqNum | the incoming seq num |
System.Int64 | expectedSeqNum | the expected seq num |
SetFixSession(IExtendedFixSession)
Declaration
public override void SetFixSession(IExtendedFixSession fixSession)
Parameters
Type | Name | Description |
---|---|---|
IExtendedFixSession | fixSession |