public class SingleTailer extends Object implements ExcerptTailer
| Constructor and Description |
|---|
SingleTailer(AbstractChronicle chronicle,
java.util.function.Function<net.openhft.chronicle.bytes.Bytes,net.openhft.chronicle.wire.Wire> wireProvider,
net.openhft.chronicle.wire.WireType wireType) |
| Modifier and Type | Method and Description |
|---|---|
long |
cycle() |
long |
index() |
boolean |
index(long index)
The indexes are stored in many excerpts, so the index2index tells chronicle where ( in other
words the address of where ) the root first level index is stored.
|
boolean |
index(long cycle,
long index)
Randomly select an Excerpt.
|
ChronicleQueue |
queue() |
boolean |
readDocument(java.util.function.Consumer<net.openhft.chronicle.wire.WireIn> reader) |
boolean |
readDocument(net.openhft.chronicle.wire.ReadMarshallable reader) |
ExcerptTailer |
toEnd()
Wind to the upper.
|
ExcerptTailer |
toStart()
Replay from the lower.
|
public SingleTailer(@NotNull
AbstractChronicle chronicle,
@NotNull
java.util.function.Function<net.openhft.chronicle.bytes.Bytes,net.openhft.chronicle.wire.Wire> wireProvider,
net.openhft.chronicle.wire.WireType wireType)
public boolean readDocument(java.util.function.Consumer<net.openhft.chronicle.wire.WireIn> reader)
public boolean readDocument(@NotNull
net.openhft.chronicle.wire.ReadMarshallable reader)
throws IOException
readDocument in interface ExcerptTailerreader - user to read the documenttrue if successfulIOException - if not able to read the chronicle filepublic long index()
index in interface ExcerptTailerpublic long cycle()
cycle in interface ExcerptTailerpublic boolean index(long index)
index in interface ExcerptTailerindex - index to look uppublic boolean index(long cycle,
long index)
throws IOException
ExcerptTailerindex in interface ExcerptTailercycle - cycleindex - index to look upIOException - if not able to read the chronicle file@NotNull public ExcerptTailer toStart()
ExcerptTailertoStart in interface ExcerptTailer@NotNull public ExcerptTailer toEnd()
ExcerptTailertoEnd in interface ExcerptTailerpublic ChronicleQueue queue()
queue in interface ExcerptCommonCopyright © 2015. All rights reserved.