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 ExcerptAppender
writer
- to write to excerpt.public long writeBytes(@NotNull net.openhft.chronicle.bytes.WriteBytesMarshallable marshallable)
writeBytes
in interface ExcerptAppender
marshallable
- to write to excerpt.public long writeBytes(@NotNull net.openhft.chronicle.bytes.Bytes<?> bytes)
writeBytes
in interface ExcerptAppender
bytes
- to write to excerpt.IOException
public long index()
index
in interface ExcerptAppender
public long cycle()
cycle
in interface ExcerptAppender
public void prefetch()
ExcerptCommon
prefetch
in interface ExcerptCommon
Copyright © 2016. All rights reserved.