public interface ExcerptAppender extends ExcerptCommon<ExcerptAppender>, net.openhft.chronicle.wire.MarshallableOut
ChronicleQueue.| Modifier and Type | Method and Description |
|---|---|
int |
cycle() |
long |
lastIndexAppended() |
boolean |
padToCacheAlign() |
void |
padToCacheAlign(boolean padToCacheAlign)
Enable padding if near the end of a cache line, pad it so a following 4-byte int value will not split a cache line.
|
default void |
pretouch()
Asynchronous call to load a block before it needed to reduce latency.
|
void |
writeBytes(net.openhft.chronicle.bytes.Bytes<?> bytes) |
default void |
writeBytes(long index,
net.openhft.chronicle.bytes.BytesStore bytes)
Write an entry at a given index.
|
void |
writeEndOfCycleIfRequired()
Write an EOF marker on the current cycle if it is about to roll.
|
default net.openhft.chronicle.wire.DocumentContext |
writingDocument(long index)
Write an entry at a given index.
|
lazyIndexing, lazyIndexing, queue, sourceIdvoid writeBytes(@NotNull
net.openhft.chronicle.bytes.Bytes<?> bytes)
throws net.openhft.chronicle.wire.UnrecoverableTimeoutException
bytes - to write to excerpt.net.openhft.chronicle.wire.UnrecoverableTimeoutExceptiondefault void writeBytes(long index,
net.openhft.chronicle.bytes.BytesStore bytes)
throws StreamCorruptedException
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.default net.openhft.chronicle.wire.DocumentContext writingDocument(long index)
index - to write the byte to or fail.StreamCorruptedException - the write failed is was unable to write the data at the
given index.long lastIndexAppended()
IllegalStateException - if no index is availableint cycle()
default void pretouch()
void padToCacheAlign(boolean padToCacheAlign)
boolean padToCacheAlign()
void writeEndOfCycleIfRequired()
Copyright © 2016. All rights reserved.