From the name verify you could be excused from thinking that all it does is a form of validation.
Indeed the majority of the message does do this, checking sequence numbers and so-on.
But the last line is to call fromCallback
|
fromCallback(msgType, msg, sessionID); |
This radically expands the verify method to actually being the point of entry to the Application for FIX traffic.
I can see two options
- Rename
verify to verifyAndProcessMessage
- Move the
fromCallback call outside verify and restructuring callers.
From the name
verifyyou could be excused from thinking that all it does is a form of validation.Indeed the majority of the message does do this, checking sequence numbers and so-on.
But the last line is to call
fromCallbackquickfixj/quickfixj-core/src/main/java/quickfix/Session.java
Line 1872 in 974dc7f
This radically expands the verify method to actually being the point of entry to the
Applicationfor FIX traffic.I can see two options
verifytoverifyAndProcessMessagefromCallbackcall outside verify and restructuring callers.