Thanks for the quick answer.
I have more questions to clarify what I understood:
1) If I understood well, data stored in the queue is not removed after it has been read, right? So I should take care of it if I want to remove things… is there some configurable way of doing that automatically (like keeping N messages, or keeping for a given time…) or should it be done outside of the JVM?
2) To be able to continue reading after a crash, I must know the index where I was, right?
And a bonus question: am I trying to twist Chronicle too much with the usage I intend to do?
For the record, it is to transfer messages inbetween services in an opensource ESB (
http://petals.ow2.org): memory is often a problem when there is a huge quantity of messages that can't all be processed at a given moment.
For now we drop messages (some other ESB would just crash with an OOM exception) but that's not acceptable, so persistence to disk is the solution we are going to use, but history is not really what we are interested in (maybe that could be an interesting feature to exploit). If we start using Chronicle, maybe next step would be to use it to exchange messages between distributed nodes (Petals is distributed, for now we use some kind of simple socket).
Thank you for your help, Chroncle seems really great, it would be nice to use it :)