我有一个将市场数据发送给用户的接受器应用程序。问题是即使我们已经设置PersistMessages = N
了会话,我们也可以看到消息是持久的。根据 quickfixj 帮助文档,如果我们设置PersistMessages = N
then
如果设置为 N,则不会保留任何消息。这将强制 QuickFIX 始终发送 GapFills 而不是重新发送消息。如果您知道您永远不想重新发送消息,请使用此选项。对市场数据流有用。
对此问题的任何帮助表示赞赏
提前感谢阿文德
你能粘贴你的配置文件或其他有用的东西吗?您在日志文件中看到的消息可能是管理员消息。据我所知,即使您设置 PersistMessages = N,文件中也会有管理员消息
It's probably an issue with your configuration file. In any case, if you are seeing persisted messages, you must be using a MessageStore that supports persistence. You can also define an empty MessageStore implementation that doesn't store anything and this will have the same effect as the setting (gap fills instead of resent messages). However, using the setting is easier and is the preferred method.