public class SingleAppender extends Object implements ExcerptAppender
| Constructor and Description |
|---|
SingleAppender(ChronicleQueue chronicle,
java.util.function.Function<net.openhft.chronicle.bytes.Bytes,net.openhft.chronicle.wire.Wire> bytesToWire) |
| Modifier and Type | Method and Description |
|---|---|
ChronicleQueue |
chronicle() |
long |
cycle() |
long |
index() |
ChronicleQueue |
queue() |
long |
writeDocument(net.openhft.chronicle.wire.WriteMarshallable writer) |
public SingleAppender(ChronicleQueue chronicle, java.util.function.Function<net.openhft.chronicle.bytes.Bytes,net.openhft.chronicle.wire.Wire> bytesToWire)
public long writeDocument(net.openhft.chronicle.wire.WriteMarshallable writer)
throws IOException
writeDocument in interface ExcerptAppenderwriter - to write one excerpt.IOExceptionpublic long index()
index in interface ExcerptAppenderIllegalStateException - if the last index has not been setpublic long cycle()
cycle in interface ExcerptAppender@NotNull public ChronicleQueue chronicle()
public ChronicleQueue queue()
queue in interface ExcerptCommonCopyright © 2015. All rights reserved.