public static class SingleChronicleQueueExcerpts.StoreTailer extends Object implements ExcerptTailer
Constructor and Description |
---|
StoreTailer(SingleChronicleQueue queue) |
Modifier and Type | Method and Description |
---|---|
long |
cycle() |
long |
index() |
boolean |
moveToIndex(long index)
Randomly select an Excerpt.
|
void |
prefetch()
Hint to the underlying store to get the next page(s)
|
RollingChronicleQueue |
queue() |
boolean |
readBytes(net.openhft.chronicle.bytes.Bytes using) |
boolean |
readBytes(net.openhft.chronicle.bytes.ReadBytesMarshallable using) |
boolean |
readDocument(net.openhft.chronicle.wire.ReadMarshallable marshaller) |
net.openhft.chronicle.wire.DocumentContext |
readingDocument()
equivalent to
ExcerptTailer.readDocument(ReadMarshallable) but with out the use of a
lambda expression. |
ExcerptTailer |
toEnd()
Wind to the upper.
|
ExcerptTailer |
toStart()
Replay from the lower.
|
String |
toString() |
public StoreTailer(@NotNull SingleChronicleQueue queue)
public boolean readDocument(@NotNull net.openhft.chronicle.wire.ReadMarshallable marshaller)
readDocument
in interface ExcerptTailer
marshaller
- user to read the documenttrue
if successfulpublic boolean readBytes(@NotNull net.openhft.chronicle.bytes.Bytes using)
readBytes
in interface ExcerptTailer
using
- used to read the documenttrue
if successfulpublic net.openhft.chronicle.wire.DocumentContext readingDocument()
ExcerptTailer
ExcerptTailer.readDocument(ReadMarshallable)
but with out the use of a
lambda expression.
This method is the ExcerptTailer equivalent of WireIn.readingDocument()
readingDocument
in interface ExcerptTailer
public boolean readBytes(@NotNull net.openhft.chronicle.bytes.ReadBytesMarshallable using)
readBytes
in interface ExcerptTailer
using
- used to read the documenttrue
if successfulpublic long index()
index
in interface ExcerptTailer
public long cycle()
cycle
in interface ExcerptTailer
public boolean moveToIndex(long index)
ExcerptTailer
moveToIndex
in interface ExcerptTailer
index
- index to look up, the index includes the cycle number and a sequence number from
with this cycle@NotNull public final ExcerptTailer toStart()
ExcerptTailer
toStart
in interface ExcerptTailer
@NotNull public ExcerptTailer toEnd()
ExcerptTailer
toEnd
in interface ExcerptTailer
public void prefetch()
ExcerptCommon
prefetch
in interface ExcerptCommon
public RollingChronicleQueue queue()
Copyright © 2016. All rights reserved.