public class BinaryLongArrayReference extends AbstractReference implements ByteableLongArrayValues, BytesMarshallable
Modifier and Type | Field and Description |
---|---|
static int |
SHIFT |
bytes, offset
Constructor and Description |
---|
BinaryLongArrayReference() |
BinaryLongArrayReference(long defaultCapacity) |
Modifier and Type | Method and Description |
---|---|
protected void |
acceptNewBytesStore(@NotNull BytesStore bytes) |
void |
bindValueAt(long index,
@NotNull net.openhft.chronicle.core.values.LongValue value) |
@Nullable BytesStore |
bytesStore() |
void |
bytesStore(@NotNull BytesStore bytes,
long offset,
long length)
This setter for a data type which points to an underlying ByteStore.
|
ByteableLongArrayValues |
capacity(long arrayLength) |
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(@NotNull Bytes bytes,
long capacity) |
long |
maxSize() |
long |
offset() |
static long |
peakLength(@NotNull BytesStore bytes,
long offset) |
static long |
peakLength(@NotNull BytesStore bytes,
long offset,
long capacityHint) |
void |
readMarshallable(BytesIn bytes)
Bytes to read.
|
void |
reset() |
void |
setMaxUsed(long usedAtLeast) |
void |
setOrderedValueAt(long index,
long value) |
void |
setUsed(long used) |
void |
setValueAt(long index,
long value) |
long |
sizeInBytes(long capacity) |
static void |
startCollecting() |
@NotNull String |
toString() |
static void |
write(@NotNull Bytes bytes,
long capacity) |
void |
writeMarshallable(BytesOut bytes)
Write to Bytes.
|
address, lock, performClose, tryLock
assertCloseable, assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, disableThreadSafetyCheck, disableThreadSafetyCheck, enableCloseableTracing, gcAndWaitForCloseablesToClose, isClosed, isClosing, isInUserThread, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, closeQuietly, closeQuietly
$toString, usesSelfDescribingMessage
public static final int SHIFT
public BinaryLongArrayReference()
public BinaryLongArrayReference(long defaultCapacity)
public static void startCollecting()
public static void forceAllToNotCompleteState() throws IllegalStateException, BufferOverflowException
protected void acceptNewBytesStore(@NotNull @NotNull BytesStore bytes) throws IllegalStateException
acceptNewBytesStore
in class AbstractReference
IllegalStateException
public static void write(@NotNull @NotNull Bytes bytes, long capacity) throws BufferOverflowException, IllegalArgumentException, IllegalStateException
public static void lazyWrite(@NotNull @NotNull Bytes bytes, long capacity) throws BufferOverflowException, IllegalStateException
public static long peakLength(@NotNull @NotNull BytesStore bytes, long offset) throws BufferUnderflowException, IllegalStateException
public static long peakLength(@NotNull @NotNull BytesStore bytes, long offset, long capacityHint) throws BufferUnderflowException, IllegalStateException
public long getCapacity() throws IllegalStateException
getCapacity
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
public long getUsed() throws IllegalStateException, BufferUnderflowException
getUsed
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
BufferUnderflowException
public void setMaxUsed(long usedAtLeast) throws IllegalStateException, BufferUnderflowException
setMaxUsed
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
BufferUnderflowException
public void setUsed(long used) throws IllegalStateException, BufferUnderflowException
setUsed
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
BufferUnderflowException
public long getValueAt(long index) throws BufferUnderflowException, IllegalStateException
getValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
BufferUnderflowException
IllegalStateException
public void setValueAt(long index, long value) throws BufferOverflowException, IllegalStateException
setValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
BufferOverflowException
IllegalStateException
public long getVolatileValueAt(long index) throws BufferUnderflowException, IllegalStateException
getVolatileValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
BufferUnderflowException
IllegalStateException
public void bindValueAt(long index, @NotNull @NotNull net.openhft.chronicle.core.values.LongValue value) throws IllegalStateException, BufferOverflowException
bindValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
BufferOverflowException
public void setOrderedValueAt(long index, long value) throws BufferOverflowException, IllegalStateException
setOrderedValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
BufferOverflowException
IllegalStateException
public void bytesStore(@NotNull @NotNull BytesStore bytes, long offset, long length) throws IllegalArgumentException, IllegalStateException, BufferOverflowException
Byteable
bytesStore
in interface Byteable
bytesStore
in class AbstractReference
bytes
- the fix point ByteStoreoffset
- the offset within the ByteStorelength
- the length in the ByteStoreIllegalArgumentException
IllegalStateException
BufferOverflowException
public void readMarshallable(BytesIn bytes) throws net.openhft.chronicle.core.io.IORuntimeException, IllegalStateException, BufferUnderflowException
ReadBytesMarshallable
readMarshallable
in interface BytesMarshallable
readMarshallable
in interface ReadBytesMarshallable
bytes
- to read.net.openhft.chronicle.core.io.IORuntimeException
IllegalStateException
BufferUnderflowException
public void writeMarshallable(BytesOut bytes) throws IllegalStateException, BufferOverflowException, BufferUnderflowException
WriteBytesMarshallable
writeMarshallable
in interface BytesMarshallable
writeMarshallable
in interface WriteBytesMarshallable
bytes
- to write to.IllegalStateException
BufferOverflowException
BufferUnderflowException
public boolean isNull() throws IllegalStateException
isNull
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
public void reset() throws IllegalStateException
reset
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
@Nullable public @Nullable BytesStore bytesStore()
bytesStore
in interface Byteable
bytesStore
in class AbstractReference
public long offset()
offset
in interface Byteable
offset
in class AbstractReference
public long maxSize()
@NotNull public @NotNull String toString()
toString
in class net.openhft.chronicle.core.io.AbstractCloseable
public long sizeInBytes(long capacity) throws IllegalStateException
sizeInBytes
in interface ByteableLongArrayValues
sizeInBytes
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
public ByteableLongArrayValues capacity(long arrayLength) throws IllegalStateException
capacity
in interface ByteableLongArrayValues
IllegalStateException
public boolean compareAndSet(long index, long expected, long value) throws BufferOverflowException, IllegalStateException
compareAndSet
in interface net.openhft.chronicle.core.values.LongArrayValues
BufferOverflowException
IllegalStateException
Copyright © 2022. All rights reserved.