public static class SingleChronicleQueueExcerpts.StoreAppender extends Object implements ExcerptAppender, net.openhft.chronicle.wire.DocumentContext
| Constructor and Description |
|---|
StoreAppender(SingleChronicleQueue queue) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
cycle() |
long |
index() |
boolean |
isMetaData() |
boolean |
isPresent() |
long |
lastIndexAppended() |
void |
metaData(boolean metaData) |
SingleChronicleQueue |
queue() |
int |
sourceId() |
net.openhft.chronicle.wire.Wire |
wire() |
void |
writeBytes(net.openhft.chronicle.bytes.Bytes bytes) |
void |
writeBytes(long index,
net.openhft.chronicle.bytes.Bytes<?> bytes)
Write an entry at a given index.
|
void |
writeBytes(net.openhft.chronicle.bytes.WriteBytesMarshallable marshallable) |
void |
writeDocument(net.openhft.chronicle.wire.WriteMarshallable writer) |
net.openhft.chronicle.wire.DocumentContext |
writingDocument() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmethodWriter, methodWriterBuilder, writeMap, writeTextpublic StoreAppender(@NotNull
SingleChronicleQueue queue)
public int sourceId()
sourceId in interface net.openhft.chronicle.wire.DocumentContextpublic long index()
index in interface net.openhft.chronicle.wire.DocumentContextpublic boolean isPresent()
isPresent in interface net.openhft.chronicle.wire.DocumentContextpublic net.openhft.chronicle.wire.Wire wire()
wire in interface net.openhft.chronicle.wire.DocumentContextpublic net.openhft.chronicle.wire.DocumentContext writingDocument()
writingDocument in interface ExcerptAppenderpublic boolean isMetaData()
isMetaData in interface net.openhft.chronicle.wire.DocumentContextpublic void metaData(boolean metaData)
metaData in interface net.openhft.chronicle.wire.DocumentContextpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void writeDocument(@NotNull
net.openhft.chronicle.wire.WriteMarshallable writer)
writeDocument in interface ExcerptAppenderwriter - to write to excerpt.public void writeBytes(@NotNull
net.openhft.chronicle.bytes.Bytes bytes)
writeBytes in interface ExcerptAppenderbytes - to write to excerpt.public void writeBytes(long index,
net.openhft.chronicle.bytes.Bytes<?> bytes)
throws StreamCorruptedException
ExcerptAppenderwriteBytes in interface ExcerptAppenderindex - to write the byte to or fail.bytes - to write.StreamCorruptedException - the write failed is was unable to write the data at the given index.public void writeBytes(@NotNull
net.openhft.chronicle.bytes.WriteBytesMarshallable marshallable)
writeBytes in interface ExcerptAppendermarshallable - to write to excerpt.public long lastIndexAppended()
lastIndexAppended in interface ExcerptAppenderpublic int cycle()
cycle in interface ExcerptAppenderpublic SingleChronicleQueue queue()
Copyright © 2016. All rights reserved.