public interface ExcerptTailer extends ExcerptCommon, net.openhft.chronicle.wire.MarshallableIn, net.openhft.chronicle.wire.SourceContext
ChronicleQueue
.Modifier and Type | Method and Description |
---|---|
ExcerptTailer |
afterLastWritten(ChronicleQueue queue)
Wind this tailer to after the last entry which wrote an entry to the queue
|
int |
cycle() |
TailerDirection |
direction() |
ExcerptTailer |
direction(TailerDirection direction)
Set the direction of movement.
|
long |
index() |
boolean |
moveToIndex(long index)
Randomly select an Excerpt.
|
default net.openhft.chronicle.wire.DocumentContext |
readingDocument()
equivalent to
MarshallableIn.readDocument(ReadMarshallable) but with out the use of a
lambda expression. |
net.openhft.chronicle.wire.DocumentContext |
readingDocument(boolean includeMetaData) |
ExcerptTailer |
toEnd()
Wind to the last entry int eh last entry
|
ExcerptTailer |
toStart()
Replay from the first entry in the first cycle.
|
sourceId
default net.openhft.chronicle.wire.DocumentContext readingDocument()
MarshallableIn.readDocument(ReadMarshallable)
but with out the use of a
lambda expression.
This method is the ExcerptTailer equivalent of WireIn.readingDocument()
readingDocument
in interface net.openhft.chronicle.wire.MarshallableIn
net.openhft.chronicle.wire.DocumentContext readingDocument(boolean includeMetaData)
long index()
index
in interface net.openhft.chronicle.wire.SourceContext
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, BACKWARDExcerptTailer afterLastWritten(ChronicleQueue queue) throws net.openhft.chronicle.core.io.IORuntimeException
queue
- which was written to.net.openhft.chronicle.core.io.IORuntimeException
- if the queue couldn't be wound to the last index.Copyright © 2016. All rights reserved.