public static class Excerpts.StoreTailer extends Object implements ExcerptTailer
Constructor and Description |
---|
StoreTailer(AbstractChronicleQueue queue) |
Modifier and Type | Method and Description |
---|---|
long |
index() |
boolean |
moveToIndex(long index)
Randomly select an Excerpt.
|
void |
prefetch()
Hint to the underlying store to get the next page(s)
|
boolean |
readBytes(net.openhft.chronicle.bytes.Bytes using) |
boolean |
readBytes(net.openhft.chronicle.bytes.ReadBytesMarshallable using) |
boolean |
readDocument(net.openhft.chronicle.wire.ReadMarshallable marshaller) |
ExcerptTailer |
toEnd()
Wind to the upper.
|
ExcerptTailer |
toStart()
Replay from the lower.
|
String |
toString() |
public StoreTailer(@NotNull AbstractChronicleQueue 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 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 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 ExcerptTailer toStart()
ExcerptTailer
toStart
in interface ExcerptTailer
@NotNull public ExcerptTailer toEnd() throws IOException
ExcerptTailer
toEnd
in interface ExcerptTailer
IOException
- if not able to read the chronicle filepublic void prefetch()
ExcerptCommon
prefetch
in interface ExcerptCommon
Copyright © 2016. All rights reserved.