Package com.btobits.fixengine
Interface Application
public interface Application
For interacting with FIXEngine application must implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isMessageActual
(FIXMessage message, String sessionID) This method is invoked every time Engine is asked to resend Application level message.void
newSession
(String sessionID) This method is invoked every time when new Session is created.void
processMessage
(FIXMessage message, String sessionID) This method is invoked every time when FIX Engine receives application message.void
stopEngineSession
(String sessionID, String reason) This method is invoked when Session with ID=sessionID is closed.
-
Method Details
-
processMessage
This method is invoked every time when FIX Engine receives application message.- Parameters:
message
- message in FIX message formatsessionID
- ID of session which has received message- Throws:
ApplMessageProcessException
-
stopEngineSession
This method is invoked when Session with ID=sessionID is closed.- Parameters:
sessionID
- ID of sesion to be stopedreason
- the string of session closing reason.
-
newSession
This method is invoked every time when new Session is created.- Parameters:
sessionID
- ID of new sesion
-
isMessageActual
This method is invoked every time Engine is asked to resend Application level message. If this method returns true Engine resends message to counterpart, otherwise it sends SequenceReset Gap Fill message.- Parameters:
sessionID
- ID of new sesionmessage
- message in FIX format
-