public class ZippedDocumentAppender extends Object implements Closeable
bytes before appending the zipped bytes to the
ChronicleQueue, in the meantime the bytes are held in a ring buffer.| Constructor and Description |
|---|
ZippedDocumentAppender(BytesRingBuffer bytesRingBuffer,
ChronicleQueue chronicleQueue) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(net.openhft.chronicle.bytes.Bytes bytes)
the bytes that you wish to append, this bytes will become zipped and appended to the
chronicle using a background thread
|
void |
close()
terminates the background thread
|
public static final String ERR_MSG
public ZippedDocumentAppender(@NotNull
BytesRingBuffer bytesRingBuffer,
@NotNull
ChronicleQueue chronicleQueue)
bytesRingBuffer - a ring buffer to hold the bytes before they are zippedchronicleQueue - the chronicle you wish to append the zipped bytes topublic void append(@NotNull
net.openhft.chronicle.bytes.Bytes bytes)
throws InterruptedException
bytes - the bytes to appendInterruptedExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableCopyright © 2015. All rights reserved.