public class BinaryLongArrayReference extends AbstractReference implements ByteableLongArrayValues
bytes, offset| Constructor and Description |
|---|
BinaryLongArrayReference() |
| Modifier and Type | Method and Description |
|---|---|
void |
bindValueAt(int index,
net.openhft.chronicle.core.values.LongValue value) |
BytesStore |
bytesStore() |
void |
bytesStore(BytesStore bytes,
long offset,
long length)
This setter for a data type which points to an underlying ByteStore.
|
boolean |
compareAndSet(long index,
long expected,
long value) |
static void |
forceAllToNotCompleteState() |
long |
getCapacity() |
long |
getUsed() |
long |
getValueAt(long index) |
long |
getVolatileValueAt(long index) |
boolean |
isNull() |
static void |
lazyWrite(Bytes bytes,
long capacity) |
long |
maxSize() |
long |
offset() |
static long |
peakLength(BytesStore bytes,
long offset) |
void |
reset() |
void |
setMaxUsed(long usedAtLeast) |
void |
setOrderedValueAt(long index,
long value) |
void |
setValueAt(long index,
long value) |
long |
sizeInBytes(long capacity) |
static void |
startCollecting() |
String |
toString() |
static void |
write(Bytes bytes,
long capacity) |
acceptNewBytesStore, address, closepublic static void startCollecting()
public static void forceAllToNotCompleteState()
public static void write(@NotNull
Bytes bytes,
long capacity)
throws BufferOverflowException,
IllegalArgumentException
public static void lazyWrite(@NotNull
Bytes bytes,
long capacity)
throws BufferOverflowException
BufferOverflowExceptionpublic static long peakLength(@NotNull
BytesStore bytes,
long offset)
throws BufferUnderflowException
BufferUnderflowExceptionpublic long getCapacity()
getCapacity in interface net.openhft.chronicle.core.values.LongArrayValuespublic long getUsed()
getUsed in interface net.openhft.chronicle.core.values.LongArrayValuespublic void setMaxUsed(long usedAtLeast)
setMaxUsed in interface net.openhft.chronicle.core.values.LongArrayValuespublic long getValueAt(long index)
throws BufferUnderflowException
getValueAt in interface net.openhft.chronicle.core.values.LongArrayValuesBufferUnderflowExceptionpublic void setValueAt(long index,
long value)
throws IllegalArgumentException,
BufferOverflowException
setValueAt in interface net.openhft.chronicle.core.values.LongArrayValuesIllegalArgumentExceptionBufferOverflowExceptionpublic long getVolatileValueAt(long index)
throws BufferUnderflowException
getVolatileValueAt in interface net.openhft.chronicle.core.values.LongArrayValuesBufferUnderflowExceptionpublic void bindValueAt(int index,
@NotNull
net.openhft.chronicle.core.values.LongValue value)
bindValueAt in interface net.openhft.chronicle.core.values.LongArrayValuespublic void setOrderedValueAt(long index,
long value)
throws IllegalArgumentException,
BufferOverflowException
setOrderedValueAt in interface net.openhft.chronicle.core.values.LongArrayValuesIllegalArgumentExceptionBufferOverflowExceptionpublic void bytesStore(@NotNull
BytesStore bytes,
long offset,
long length)
throws BufferUnderflowException,
IllegalArgumentException
ByteablebytesStore in interface ByteablebytesStore in class AbstractReferencebytes - the fix point ByteStoreoffset - the offset within the ByteStorelength - the length in the ByteStoreBufferUnderflowExceptionIllegalArgumentExceptionpublic boolean isNull()
isNull in interface net.openhft.chronicle.core.values.LongArrayValuespublic void reset()
reset in interface net.openhft.chronicle.core.values.LongArrayValues@Nullable public BytesStore bytesStore()
bytesStore in interface ByteablebytesStore in class AbstractReferencepublic long offset()
offset in interface Byteableoffset in class AbstractReferencepublic long maxSize()
maxSize in interface ByteablemaxSize in class AbstractReferencepublic long sizeInBytes(long capacity)
sizeInBytes in interface ByteableLongArrayValuessizeInBytes in interface net.openhft.chronicle.core.values.LongArrayValuespublic boolean compareAndSet(long index,
long expected,
long value)
throws IllegalArgumentException,
BufferOverflowException
compareAndSet in interface net.openhft.chronicle.core.values.LongArrayValuesIllegalArgumentExceptionBufferOverflowExceptionCopyright © 2018. All rights reserved.