public class MappedBytesStore extends NativeBytesStore<Void>
address, memorycharToString| Modifier | Constructor and Description |
|---|---|
protected |
MappedBytesStore(net.openhft.chronicle.core.ReferenceCounted owner,
long start,
long address,
long capacity,
long safeCapacity) |
| Modifier and Type | Method and Description |
|---|---|
default ByteOrder |
byteOrder() |
VanillaBytes<Void> |
bytesForWrite() |
default boolean |
compareAndSwapDouble(long offset,
double expected,
double value)
Perform a 64-bit double CAS at a given offset.
|
default boolean |
compareAndSwapFloat(long offset,
float expected,
float value)
Perform a 32-bit float CAS at a given offset.
|
boolean |
inside(long offset)
Use this test to determine if an offset is considered safe.
|
default long |
readLimit() |
default long |
readPosition()
The read position must be start() <= readPosition() && readPosition() <= readLimit() && readPosition < safeLimit()
|
default long |
readRemaining() |
long |
safeLimit() |
long |
start() |
default long |
writeLimit() |
default long |
writePosition()
The read position must be readPosition() <= writePosition() && writePosition() <= writeLimit()
|
default long |
writeRemaining() |
address, appendUTF, appendUtf8, byteCheckSum, byteCheckSum, capacity, checkReleased, compareAndSwapInt, compareAndSwapLong, copy, copyTo, copyTo, elasticByteBuffer, elasticByteBuffer, equals, init, lazyNativeBytesStoreWithFixedCapacity, move, nativeRead, nativeStore, nativeStoreWithFixedCapacity, nativeWrite, read, readByte, readDouble, readFloat, readIncompleteLong, readInt, readLong, readShort, readVolatileByte, readVolatileInt, readVolatileLong, readVolatileShort, realCapacity, refCount, release, reserve, setAddress, sharedMemory, toString, toTemporaryDirectByteBuffer, underlyingObject, uninit, uninitialized, wrap, write, write, write, write0, writeByte, writeDouble, writeFloat, writeInt, writeLong, writeOrderedInt, writeOrderedLong, writeShort, writeVolatileByte, writeVolatileInt, writeVolatileLong, writeVolatileShort, zeroOuthashCodeclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAndGetByteNotAtomic, addAndGetDoubleNotAtomic, addAndGetFloatNotAtomic, addAndGetIntNotAtomic, addAndGetLongNotAtomic, addAndGetShortNotAtomic, addAndGetUnsignedByteNotAtomic, addAndGetUnsignedIntNotAtomic, addAndGetUnsignedShortNotAtomic, bytesForRead, bytesStore, charAt, contentEquals, copyTo, empty, endsWith, equalBytes, from, isClear, isNative, isPresent, isPresent, length, longCheckSum, nativePointer, startsWith, startsWith, subSequence, to8bitString, toDebugString, toDebugString, wrap, wrap, wrap, writeMaxLongaddAndGetDouble, addAndGetFloat, addAndGetInt, addAndGetLong, compareUtf8, copyTo, copyTo, createCharToString, fastHash, findByte, parseLong, printable, readBoolean, readUnsignedByte, readUnsignedInt, readUnsignedInt24, readUnsignedShort, readUtf8, readUtf8Limited, readUtf8Limited, readVolatileDouble, readVolatileFloat, subBytes, toByteArrayappend, write, write, writeBoolean, writeByte, writeInt24, writeOrderedDouble, writeOrderedFloat, writeUnsignedByte, writeUnsignedInt, writeUnsignedShort, writeUtf8, writeUtf8Limited, writeVolatileDouble, writeVolatileFloatclose, release, releaseAll, tryReservecloseQuietly, isClosed, notifyClosingchars, codePointsprotected MappedBytesStore(net.openhft.chronicle.core.ReferenceCounted owner,
long start,
long address,
long capacity,
long safeCapacity)
throws IllegalStateException
IllegalStateException@NotNull public VanillaBytes<Void> bytesForWrite() throws IllegalStateException
bytesForWrite in interface BytesStore<NativeBytesStore<Void>,Void>bytesForWrite in class NativeBytesStore<Void>IllegalStateExceptionpublic boolean inside(long offset)
BytesStorepublic long safeLimit()
public long start()
start in class NativeBytesStore<Void>public long readPosition()
public long writePosition()
public long readRemaining()
public long writeRemaining()
public long readLimit()
public long writeLimit()
public ByteOrder byteOrder()
public boolean compareAndSwapFloat(long offset,
float expected,
float value)
throws BufferOverflowException,
IllegalArgumentException,
net.openhft.chronicle.core.io.IORuntimeException
offset - to perform CASexpected - valuevalue - to setBufferOverflowExceptionIllegalArgumentExceptionnet.openhft.chronicle.core.io.IORuntimeExceptionpublic boolean compareAndSwapDouble(long offset,
double expected,
double value)
throws BufferOverflowException,
IllegalArgumentException,
net.openhft.chronicle.core.io.IORuntimeException
offset - to perform CASexpected - valuevalue - to setBufferOverflowExceptionIllegalArgumentExceptionnet.openhft.chronicle.core.io.IORuntimeExceptionCopyright © 2016. All rights reserved.