Chronicle v4 queue.lastIndex() javadoc is misleading?

30 views
Skip to first unread message

Sergey Nekoval

unread,
May 24, 2016, 5:40:23 AM5/24/16
to Chronicle
queue.lastIndex() method is expected to return "the index one more than the highest valid index immediately available."
In fact, when queue is non-empty, it returns just the highest valid index.
(At the same time, ExcerptTailer.toEnd() positions itself to queue.lastIndex() + 1)

Am I missing something, is there a javadoc or implementation issue?

Peter Lawrey

unread,
May 24, 2016, 8:32:12 AM5/24/16
to java-ch...@googlegroups.com
Yes, this method was confusing and we have renamed it. 
If your Tailer direction is FORWARD, calling toEnd() should set it to the same value.
I would check you have Chronicle Queue v4.4.1
long nextIndexToWrite();

--
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-chronicl...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Serge++

unread,
May 24, 2016, 9:06:58 AM5/24/16
to java-ch...@googlegroups.com
Thanks. Is 4.4.1 released recently? Looks like something is missing...

Could not parse POM https://repo1.maven.org/maven2/net/openhft/chronicle-queue/4.4.1/chronicle-queue-4.4.1.pom

         > Could not find net.openhft:third-party-bom:3.5.1-SNAPSHOT


--
You received this message because you are subscribed to a topic in the Google Groups "Chronicle" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/java-chronicle/-Uj7Mw6xudc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to java-chronicl...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages