public static class SingleChronicleQueueExcerpts.StoreTailer extends net.openhft.chronicle.wire.ReadDocumentContext implements ExcerptTailer
Constructor and Description |
---|
StoreTailer(SingleChronicleQueue queue) |
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
|
void |
close() |
int |
cycle() |
TailerDirection |
direction() |
ExcerptTailer |
direction(TailerDirection direction)
Set the direction of movement.
|
long |
index() |
void |
lastAcknowledgedIndexReplicated(long acknowledgeIndex) |
long |
lastIndex(int cycle) |
boolean |
moveToIndex(long index)
Randomly select an Excerpt.
|
RollingChronicleQueue |
queue() |
net.openhft.chronicle.wire.DocumentContext |
readingDocument(boolean includeMetaData) |
int |
sourceId() |
ExcerptTailer |
toEnd()
Wind to the last entry int eh last entry
|
ExcerptTailer |
toStart()
Replay from the first entry in the first cycle.
|
String |
toString() |
closeReadLimit, closeReadPosition, isMetaData, isNotComplete, isPresent, metaData, start, wire
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
readingDocument
methodReader, readBytes, readBytes, readDocument, readMap, readText, readText
public StoreTailer(@NotNull SingleChronicleQueue queue)
public int sourceId()
sourceId
in interface ExcerptCommon
sourceId
in interface net.openhft.chronicle.wire.DocumentContext
sourceId
in class net.openhft.chronicle.wire.ReadDocumentContext
public net.openhft.chronicle.wire.DocumentContext readingDocument(boolean includeMetaData)
readingDocument
in interface ExcerptTailer
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in class net.openhft.chronicle.wire.ReadDocumentContext
public long index()
index
in interface ExcerptTailer
index
in interface net.openhft.chronicle.wire.DocumentContext
index
in class net.openhft.chronicle.wire.ReadDocumentContext
public int cycle()
cycle
in interface ExcerptTailer
public boolean moveToIndex(long index) throws TimeoutException
ExcerptTailer
moveToIndex
in interface ExcerptTailer
index
- index to look up, the index includes the cycle number and a sequence number from
with this cycleTimeoutException
@NotNull public final ExcerptTailer toStart()
ExcerptTailer
toStart
in interface ExcerptTailer
@NotNull public ExcerptTailer toEnd()
ExcerptTailer
If the direction() == FORWARD, this will be 1 more than the last entry.
Otherwise the index will be the last entry.
toEnd
in interface ExcerptTailer
public TailerDirection direction()
direction
in interface ExcerptTailer
public ExcerptTailer direction(TailerDirection direction)
ExcerptTailer
direction
in interface ExcerptTailer
direction
- NONE, FORWARD, BACKWARDpublic RollingChronicleQueue queue()
public long lastIndex(int cycle)
public ExcerptTailer afterLastWritten(ChronicleQueue queue)
ExcerptTailer
afterLastWritten
in interface ExcerptTailer
queue
- which was written to.@UsedViaReflection public void lastAcknowledgedIndexReplicated(long acknowledgeIndex)
Copyright © 2016. All rights reserved.