public static class Excerpts.BufferedAppender extends Object implements ExcerptAppender
| Constructor and Description |
|---|
BufferedAppender(net.openhft.chronicle.threads.api.EventLoop eventLoop,
Excerpts.StoreAppender underlyingAppender,
long ringBufferCapacity,
java.util.function.Consumer<net.openhft.chronicle.bytes.BytesRingBufferStats> ringBufferStats) |
| Modifier and Type | Method and Description |
|---|---|
long |
cycle() |
long |
index() |
void |
prefetch()
Hint to the underlying store to get the next page(s)
|
net.openhft.chronicle.bytes.BytesRingBuffer |
ringBuffer() |
long |
writeBytes(net.openhft.chronicle.bytes.Bytes<?> bytes)
for the best performance call this method, rather than net.openhft.chronicle.queue.impl.Excerpts.BufferedAppender#writeBytes(net.openhft.chronicle.bytes.WriteBytesMarshallable)
or net.openhft.chronicle.queue.impl.Excerpts.BufferedAppender#writeDocument(net.openhft.chronicle.wire.WriteMarshallable)
|
long |
writeBytes(net.openhft.chronicle.bytes.WriteBytesMarshallable marshallable)
for the best performacne use net.openhft.chronicle.queue.impl.Excerpts.BufferedAppender#writeBytes(net.openhft.chronicle.bytes.Bytes)
|
long |
writeDocument(net.openhft.chronicle.wire.WriteMarshallable writer)
for the best performance use net.openhft.chronicle.queue.impl.Excerpts.BufferedAppender#writeBytes(net.openhft.chronicle.bytes.Bytes)
|
public BufferedAppender(@NotNull
net.openhft.chronicle.threads.api.EventLoop eventLoop,
@NotNull
Excerpts.StoreAppender underlyingAppender,
long ringBufferCapacity,
@NotNull
java.util.function.Consumer<net.openhft.chronicle.bytes.BytesRingBufferStats> ringBufferStats)
@NotNull public net.openhft.chronicle.bytes.BytesRingBuffer ringBuffer()
public long writeDocument(@NotNull
net.openhft.chronicle.wire.WriteMarshallable writer)
writeDocument in interface ExcerptAppenderwriter - to write to excerpt.public long writeBytes(@NotNull
net.openhft.chronicle.bytes.WriteBytesMarshallable marshallable)
writeBytes in interface ExcerptAppendermarshallable - to write to excerpt.public long writeBytes(@NotNull
net.openhft.chronicle.bytes.Bytes<?> bytes)
writeBytes in interface ExcerptAppenderbytes - to write to excerpt.IOExceptionpublic long index()
index in interface ExcerptAppenderpublic long cycle()
cycle in interface ExcerptAppenderpublic void prefetch()
ExcerptCommonprefetch in interface ExcerptCommonCopyright © 2016. All rights reserved.