[QFJ-967] FileStoreMaxCachedMsgs incorrect in documentation Created: 06/Dec/18  Updated: 07/Dec/18  Resolved: 07/Dec/18

Status: Closed
Project: QuickFIX/J
Component/s: Documentation
Affects Version/s: 2.1.0
Fix Version/s: None

Type: Bug Priority: Default
Reporter: mark zeldis Assignee: Unassigned
Resolution: Not a bug Votes: 0
Labels: None


 Description   

In https://www.quickfixj.org/usermanual/2.0.0/usage/configuration.html

It says the default for FileStoreMaxCachedMsgs is 10k. I believe that this isn't true. It's Integer.MAX_VALUE.



 Comments   
Comment by Christoph John [ 07/Dec/18 ]

Hi,

why do you think it is Integer.MAX_VALUE? Here are the relevant sections of code:

Here the FileStore is initialized with a default of maxCachedMsgs = 10000 :
https://github.com/quickfix-j/quickfixj/blob/045be5c09f872b1bf7b1a8ed2904efd0030c59bd/quickfixj-core/src/main/java/quickfix/FileStoreFactory.java#L67

Here is the code in FileStore where the messageIndex is kept at the size of maxCachedMsg:
https://github.com/quickfix-j/quickfixj/blob/045be5c09f872b1bf7b1a8ed2904efd0030c59bd/quickfixj-core/src/main/java/quickfix/FileStore.java#L192

Cheers,
Chris.

Generated at Mon May 13 05:16:02 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.