public class BinaryLongArrayReference extends Object implements ByteableLongArrayValues
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) |
public 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
BufferOverflowException
public static long peakLength(@NotNull BytesStore bytes, long offset) throws BufferUnderflowException
BufferUnderflowException
public long getCapacity()
getCapacity
in interface net.openhft.chronicle.core.values.LongArrayValues
public long getUsed()
getUsed
in interface net.openhft.chronicle.core.values.LongArrayValues
public void setMaxUsed(long usedAtLeast)
setMaxUsed
in interface net.openhft.chronicle.core.values.LongArrayValues
public long getValueAt(long index) throws BufferUnderflowException
getValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
BufferUnderflowException
public void setValueAt(long index, long value) throws IllegalArgumentException, BufferOverflowException
setValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalArgumentException
BufferOverflowException
public long getVolatileValueAt(long index) throws BufferUnderflowException
getVolatileValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
BufferUnderflowException
public void bindValueAt(int index, @NotNull net.openhft.chronicle.core.values.LongValue value)
bindValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
public void setOrderedValueAt(long index, long value) throws IllegalArgumentException, BufferOverflowException
setOrderedValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalArgumentException
BufferOverflowException
public void bytesStore(@NotNull BytesStore bytes, long offset, long length) throws BufferUnderflowException, IllegalArgumentException
Byteable
bytesStore
in interface Byteable
bytes
- the fix point ByteStoreoffset
- the offset within the ByteStorelength
- the length in the ByteStoreBufferUnderflowException
IllegalArgumentException
public boolean isNull()
isNull
in interface net.openhft.chronicle.core.values.LongArrayValues
public void reset()
reset
in interface net.openhft.chronicle.core.values.LongArrayValues
public BytesStore bytesStore()
bytesStore
in interface Byteable
public long maxSize()
public long sizeInBytes(long capacity)
sizeInBytes
in interface ByteableLongArrayValues
sizeInBytes
in interface net.openhft.chronicle.core.values.LongArrayValues
public boolean compareAndSet(long index, long expected, long value) throws IllegalArgumentException, BufferOverflowException
compareAndSet
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalArgumentException
BufferOverflowException
Copyright © 2016. All rights reserved.