I’m new to Java programming. I have several questions about how to implement RingFiFoBuffer:
- Can I store big XML files into this buffer? If yes how big?
- Can several threads insert/delete/fetch records from the RingBuffer simultaneously?
- How many records can I store?
- Is there any tutorial that I can see how to write the code.
I only found http://commons.apache.org/collections/apidocs/org/apache/commons/collections/buffer/CircularFifoBuffer.html
Question 1 and 3: That is only limited by the memory you assign to the Java process that executes your program.
Qestion 2: Accessing a Collection like the referenced CircularFifoBuffer usually requires to “synchronize” them. The linked JavaDoc already contains the code for synchronizing it: