public interface ExcerptTailer extends ExcerptCommon
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() |
default MethodReader |
methodReader(Object... objects)
Reads messages from this tails as methods.
|
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) |
default net.openhft.chronicle.wire.DocumentContext |
readingDocument()
equivalent to
readDocument(ReadMarshallable) but with out the use of a
lambda expression. |
net.openhft.chronicle.wire.DocumentContext |
readingDocument(boolean includeMetaData) |
default Map<String,Object> |
readMap()
Read a Map>String, Object> from the content.
|
String |
readText()
Read the next message as a String
|
boolean |
readText(StringBuilder sb)
Read the next message as string
|
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 successfuldefault net.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()
net.openhft.chronicle.wire.DocumentContext readingDocument(boolean includeMetaData)
String readText()
boolean readText(StringBuilder sb)
sb
- to copy the text intolong 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, BACKWARDdefault MethodReader methodReader(Object... objects)
objects
- which implement the methods serialized to the file.default Map<String,Object> readMap()
ExcerptTailer 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.