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() |
long |
lastIndex(int cycle) |
boolean |
moveToIndex(long index)
Randomly select an Excerpt.
|
RollingChronicleQueue |
queue() |
boolean |
readBytes(net.openhft.chronicle.bytes.Bytes using) |
boolean |
readBytes(net.openhft.chronicle.bytes.ReadBytesMarshallable using) |
boolean |
readDocument(net.openhft.chronicle.wire.ReadMarshallable marshaller) |
net.openhft.chronicle.wire.DocumentContext |
readingDocument(boolean includeMetaData) |
String |
readText()
Read the next message as a String
|
boolean |
readText(StringBuilder sb)
Read the next message as string
|
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, isPresent, metaData, start, wireclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitmethodReader, readingDocument, readMappublic StoreTailer(@NotNull
SingleChronicleQueue queue)
public int sourceId()
sourceId in interface net.openhft.chronicle.wire.DocumentContextsourceId in class net.openhft.chronicle.wire.ReadDocumentContextpublic boolean readDocument(@NotNull
net.openhft.chronicle.wire.ReadMarshallable marshaller)
readDocument in interface ExcerptTailermarshaller - user to read the documenttrue if successfulpublic boolean readBytes(@NotNull
net.openhft.chronicle.bytes.Bytes using)
readBytes in interface ExcerptTailerusing - used to read the documenttrue if successfulpublic net.openhft.chronicle.wire.DocumentContext readingDocument(boolean includeMetaData)
readingDocument in interface ExcerptTailerpublic String readText()
ExcerptTailerreadText in interface ExcerptTailer@Nullable public boolean readText(StringBuilder sb)
ExcerptTailerreadText in interface ExcerptTailersb - to copy the text intopublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class net.openhft.chronicle.wire.ReadDocumentContextpublic boolean readBytes(@NotNull
net.openhft.chronicle.bytes.ReadBytesMarshallable using)
readBytes in interface ExcerptTailerusing - used to read the documenttrue if successfulpublic long index()
index in interface ExcerptTailerindex in interface net.openhft.chronicle.wire.DocumentContextindex in class net.openhft.chronicle.wire.ReadDocumentContextpublic int cycle()
cycle in interface ExcerptTailerpublic boolean moveToIndex(long index)
throws TimeoutException
ExcerptTailermoveToIndex in interface ExcerptTailerindex - index to look up, the index includes the cycle number and a sequence number from
with this cycleTimeoutException@NotNull public final ExcerptTailer toStart()
ExcerptTailertoStart 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 ExcerptTailerpublic TailerDirection direction()
direction in interface ExcerptTailerpublic ExcerptTailer direction(TailerDirection direction)
ExcerptTailerdirection in interface ExcerptTailerdirection - NONE, FORWARD, BACKWARDpublic RollingChronicleQueue queue()
public long lastIndex(int cycle)
public ExcerptTailer afterLastWritten(ChronicleQueue queue)
ExcerptTailerafterLastWritten in interface ExcerptTailerqueue - which was written to.Copyright © 2016. All rights reserved.