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, wait
methodWriter, methodWriterBuilder, writeBytes, writeDocument, writeDocument, writeMap, writeMessage, writeText
public StoreAppender(@NotNull SingleChronicleQueue queue)
public boolean recordHistory()
recordHistory
in interface net.openhft.chronicle.wire.MarshallableOut
public int sourceId()
sourceId
in interface ExcerptCommon
sourceId
in interface net.openhft.chronicle.wire.DocumentContext
public long index()
index
in interface net.openhft.chronicle.wire.DocumentContext
public boolean isNotComplete()
isNotComplete
in interface net.openhft.chronicle.wire.DocumentContext
public boolean isPresent()
isPresent
in interface net.openhft.chronicle.wire.DocumentContext
public net.openhft.chronicle.wire.Wire wire()
wire
in interface net.openhft.chronicle.wire.DocumentContext
public net.openhft.chronicle.wire.DocumentContext writingDocument()
writingDocument
in interface net.openhft.chronicle.wire.MarshallableOut
public boolean isMetaData()
isMetaData
in interface net.openhft.chronicle.wire.DocumentContext
public void metaData(boolean metaData)
metaData
in interface net.openhft.chronicle.wire.DocumentContext
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void writeBytes(@NotNull net.openhft.chronicle.bytes.Bytes bytes)
writeBytes
in interface ExcerptAppender
bytes
- to write to excerpt.public void writeBytes(long index, net.openhft.chronicle.bytes.Bytes<?> bytes) throws StreamCorruptedException
ExcerptAppender
writeBytes
in interface ExcerptAppender
index
- 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 ExcerptAppender
public int cycle()
cycle
in interface ExcerptAppender
public SingleChronicleQueue queue()
Copyright © 2016. All rights reserved.