--
You received this message because you are subscribed to the Google Groups "Chronicle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicle+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Peter,
Are you saying that I can't rely on the StoreFileListener in my case? If not, can you please provide a code snippet describing how to poll the file for messages until EOF is reached?
Thanks!
You are already polling to read.
You need to check if RollCycle.toCycle (tailer.index ()) changes.
Hello Mickael,
The index is composed from the cycle () so you are right.
A tailer will only change cycle when an end of file marker has been added to the older cycle.
I thought the StoreFileListener had the file name but it's been a while.
The listener tells you about files as they are created. Ie the information is thete, it doesn't make decisions about when you could remove them.
WireStore wireStore = queue.storeForCycle(queue.cycle(), 0, false); System.out.println(wireStore.file().getAbsolutePath());
To unsubscribe from this group and stop receiving emails from it, send an email to java-chronicl...@googlegroups.com.