public interface ExcerptTailer extends ExcerptCommon
ChronicleQueue
.Modifier and Type | Method and Description |
---|---|
int |
cycle() |
TailerDirection |
direction() |
ExcerptTailer |
direction(TailerDirection direction)
Set the direction of movement.
|
long |
index() |
boolean |
moveToIndex(long index)
Randomly select an Excerpt.
|
boolean |
readBytes(net.openhft.chronicle.bytes.Bytes using) |
boolean |
readBytes(net.openhft.chronicle.bytes.ReadBytesMarshallable marshallable) |
boolean |
readDocument(net.openhft.chronicle.wire.ReadMarshallable reader) |
net.openhft.chronicle.wire.DocumentContext |
readingDocument()
equivalent to
readDocument(ReadMarshallable) but with out the use of a
lambda expression. |
String |
readText() |
ExcerptTailer |
toEnd()
Wind to the last entry int eh last entry
|
ExcerptTailer |
toStart()
Replay from the first entry in the first cycle.
|
boolean readDocument(@NotNull net.openhft.chronicle.wire.ReadMarshallable reader)
reader
- user to read the documenttrue
if successfulboolean readBytes(@NotNull net.openhft.chronicle.bytes.ReadBytesMarshallable marshallable)
marshallable
- used to read the documenttrue
if successfulboolean readBytes(@NotNull net.openhft.chronicle.bytes.Bytes using)
using
- used to read the documenttrue
if successfulnet.openhft.chronicle.wire.DocumentContext readingDocument()
readDocument(ReadMarshallable)
but with out the use of a
lambda expression.
This method is the ExcerptTailer equivalent of WireIn.readingDocument()
String readText()
long index()
int cycle()
boolean moveToIndex(long index) throws TimeoutException
index
- index to look up, the index includes the cycle number and a sequence number from
with this cycleTimeoutException
@NotNull ExcerptTailer toStart()
@NotNull ExcerptTailer toEnd()
If the direction() == FORWARD, this will be 1 more than the last entry.
Otherwise the index will be the last entry.
TailerDirection direction()
ExcerptTailer direction(TailerDirection direction)
direction
- NONE, FORWARD, BACKWARDCopyright © 2016. All rights reserved.