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 |
isNotComplete() |
boolean |
isPresent() |
long |
lastIndexAppended() |
void |
metaData(boolean metaData) |
SingleChronicleQueue |
queue() |
boolean |
recordHistory() |
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.
|
net.openhft.chronicle.wire.DocumentContext |
writingDocument() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmethodWriter, methodWriterBuilder, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeTextpublic StoreAppender(@NotNull
SingleChronicleQueue queue)
public boolean recordHistory()
recordHistory in interface net.openhft.chronicle.wire.MarshallableOutpublic int sourceId()
sourceId in interface ExcerptCommonsourceId in interface net.openhft.chronicle.wire.DocumentContextpublic long index()
index in interface net.openhft.chronicle.wire.DocumentContextpublic boolean isNotComplete()
isNotComplete 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 net.openhft.chronicle.wire.MarshallableOutpublic 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 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 long lastIndexAppended()
lastIndexAppended in interface ExcerptAppenderpublic int cycle()
cycle in interface ExcerptAppenderpublic SingleChronicleQueue queue()
Copyright © 2016. All rights reserved.