public class NativeExcerptAppender extends AbstractNativeExcerpt implements ExcerptAppender
| Constructor and Description |
|---|
NativeExcerptAppender(IndexedChronicle chronicle) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPaddedEntry()
Add a padded entry to keep the index in sync with a master source.
|
void |
finish()
Finish reading or writing.
|
boolean |
nextSynchronous()
The default value is ChronicleConfig.synchronousMode()
|
void |
nextSynchronous(boolean nextSynchronous) |
void |
startExcerpt()
Start an excerpt with the default message capacity of 128K (can be configured)
This can waste up to 0.1% of disk space, unless you have sparse file support like Linux, when you will waste far less.
|
void |
startExcerpt(long capacity)
Ensure there is enough capacity for a new entry of up to the size given.
|
ExcerptAppender |
toEnd()
Skip to the last index.
|
chronicle, findMatch, findRange, index, index, lastWrittenIndex, size, toStart, wasPaddingbyteOrder, capacity, checkEndOfBuffer, compareAndSwapInt, compareAndSwapLong, limitAddr, longHash, position, position, positionAddr, positionAddr, read, readByte, readByte, readChar, readChar, readDouble, readDouble, readFloat, readFloat, readFully, readInt, readInt, readLong, readLong, readObject, readShort, readShort, readVolatileInt, readVolatileInt, readVolatileLong, readVolatileLong, remaining, startAddr, write, write, write, writeByte, writeChar, writeChar, writeDouble, writeDouble, writeFloat, writeFloat, writeInt, writeInt, writeLong, writeLong, writeObject, writeOrderedInt, writeOrderedInt, writeOrderedLong, writeOrderedLong, writeShort, writeShortaddAndGetInt, addAtomicDouble, addAtomicFloat, addAtomicInt, addAtomicLong, addByte, addDouble, addFloat, addInt, addLong, addShort, addUnsignedByte, addUnsignedInt, addUnsignedShort, append, append, append, append, append, append, append, append, append, append, append, append, append, appendDateMillis, appendDateTimeMillis, appendTimeMillis, available, busyLockInt, busyLockLong, bytesMarshallerFactory, charAt, close, currentThread, flush, getAndAdd, inputStream, isFinished, length, outputStream, parseBoolean, parseDecimal, parseDouble, parseEnum, parseLong, parseLong, parseUTF, parseUTF, read, read, read, readBoolean, readBoolean, readCompactDouble, readCompactInt, readCompactLong, readCompactShort, readCompactUnsignedInt, readCompactUnsignedShort, readEnum, readFully, readInt24, readInt24, readInt48, readInt48, readLine, readList, readMap, readMarshallable, readObject, readObject, readStopBit, readUnsignedByte, readUnsignedByte, readUnsignedInt, readUnsignedInt, readUnsignedShort, readUnsignedShort, readUTF, readUTFΔ, readUTFΔ, readUTFΔ, readVolatileDouble, readVolatileFloat, reset, setCurrentThread, shortThreadId, skip, skipBytes, skipTo, stepBackAndSkipTo, subSequence, tryLockInt, tryLockLong, tryLockNanosInt, tryLockNanosLong, uniqueTid, unlockInt, unlockLong, write, write, write, writeBoolean, writeBoolean, writeByte, writeBytes, writeChars, writeCompactDouble, writeCompactInt, writeCompactLong, writeCompactShort, writeCompactUnsignedInt, writeCompactUnsignedShort, writeEnum, writeInt24, writeInt24, writeInt48, writeInt48, writeList, writeMap, writeMarshallable, writeObject, writeOrderedDouble, writeOrderedFloat, writeStartToPosition, writeStopBit, writeUnsignedByte, writeUnsignedByte, writeUnsignedInt, writeUnsignedInt, writeUnsignedShort, writeUnsignedShort, writeUTF, writeUTFΔ, writeUTFΔequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchronicle, index, lastWrittenIndex, size, wasPaddingavailable, close, read, read, read, read, readBoolean, readBoolean, readByte, readByte, readChar, readChar, readCompactDouble, readCompactInt, readCompactLong, readCompactShort, readCompactUnsignedInt, readCompactUnsignedShort, readDouble, readDouble, readEnum, readFloat, readFloat, readFully, readFully, readInt, readInt, readInt24, readInt24, readInt48, readInt48, readLine, readList, readLong, readLong, readMap, readObject, readObject, readObject, readShort, readShort, readStopBit, readUnsignedByte, readUnsignedByte, readUnsignedInt, readUnsignedInt, readUnsignedShort, readUnsignedShort, readUTF, readUTFΔ, readUTFΔ, readUTFΔ, readVolatileDouble, readVolatileFloat, readVolatileInt, readVolatileInt, readVolatileLong, readVolatileLong, skip, skipBytesaddAndGetInt, close, compareAndSwapInt, compareAndSwapLong, flush, getAndAdd, write, write, write, write, write, writeBoolean, writeBoolean, writeByte, writeByte, writeBytes, writeChar, writeChar, writeChars, writeCompactDouble, writeCompactInt, writeCompactLong, writeCompactShort, writeCompactUnsignedInt, writeCompactUnsignedShort, writeDouble, writeDouble, writeEnum, writeFloat, writeFloat, writeInt, writeInt, writeInt24, writeInt24, writeInt48, writeInt48, writeList, writeLong, writeLong, writeMap, writeObject, writeObject, writeOrderedDouble, writeOrderedFloat, writeOrderedInt, writeOrderedInt, writeOrderedLong, writeOrderedLong, writeShort, writeShort, writeStartToPosition, writeStopBit, writeUnsignedByte, writeUnsignedByte, writeUnsignedInt, writeUnsignedInt, writeUnsignedShort, writeUnsignedShort, writeUTF, writeUTFΔ, writeUTFΔaddAtomicDouble, addAtomicFloat, addAtomicInt, addAtomicLong, addByte, addDouble, addFloat, addInt, addLong, addShort, addUnsignedByte, addUnsignedInt, addUnsignedShort, busyLockInt, busyLockLong, tryLockInt, tryLockLong, tryLockNanosInt, tryLockNanosLong, unlockInt, unlockLongappend, append, append, append, append, append, append, append, append, append, append, append, appendDateMillis, appendDateTimeMillis, appendTimeMillisparseBoolean, parseDecimal, parseDouble, parseEnum, parseLong, parseLong, parseUTF, parseUTF, skipTo, stepBackAndSkipTobyteOrder, bytesMarshallerFactory, capacity, checkEndOfBuffer, inputStream, isFinished, outputStream, position, position, remaining, reset, writecharAt, length, subSequence, toStringpublic NativeExcerptAppender(@NotNull
IndexedChronicle chronicle)
throws IOException
IOExceptionpublic void startExcerpt()
ExcerptAppenderstartExcerpt in interface ExcerptAppenderpublic void startExcerpt(long capacity)
ExcerptAppenderstartExcerpt in interface ExcerptAppendercapacity - to allow for, but not exceed.public void nextSynchronous(boolean nextSynchronous)
nextSynchronous in interface ExcerptAppendernextSynchronous - make the next write synchronous or not.public boolean nextSynchronous()
ExcerptAppendernextSynchronous in interface ExcerptAppenderpublic void addPaddedEntry()
ExcerptAppenderaddPaddedEntry in interface ExcerptAppenderpublic void finish()
ExcerptCommonfinish in interface ExcerptCommonfinish in interface net.openhft.lang.io.BytesCommonfinish in class net.openhft.lang.io.AbstractBytes@NotNull public ExcerptAppender toEnd()
ExcerptAppendertoEnd in interface ExcerptAppendertoEnd in interface ExcerptCommonCopyright © 2014. All Rights Reserved.