public class TextLongArrayReference extends AbstractReference implements ByteableLongArrayValues
bytes, offset
Constructor and Description |
---|
TextLongArrayReference() |
Modifier and Type | Method and Description |
---|---|
void |
bindValueAt(long index,
net.openhft.chronicle.core.values.LongValue value) |
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) |
long |
getCapacity() |
long |
getUsed() |
long |
getValueAt(long index) |
long |
getVolatileValueAt(long index) |
boolean |
isNull() |
long |
maxSize() |
static long |
peakLength(@NotNull BytesStore bytes,
long offset) |
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) |
@NotNull String |
toString() |
static void |
write(@NotNull Bytes bytes,
long capacity) |
acceptNewBytesStore, address, bytesStore, lock, offset, 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
public static void write(@NotNull @NotNull Bytes bytes, long capacity) throws IllegalArgumentException, IllegalStateException, BufferOverflowException, ArithmeticException, BufferUnderflowException
public static long peakLength(@NotNull @NotNull BytesStore bytes, long offset) throws IllegalStateException, BufferUnderflowException
public long getUsed() throws IllegalStateException
getUsed
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
public void setUsed(long used) throws IllegalStateException
setUsed
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
public void setMaxUsed(long usedAtLeast) throws IllegalStateException
setMaxUsed
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
public long getCapacity()
getCapacity
in interface net.openhft.chronicle.core.values.LongArrayValues
public ByteableLongArrayValues capacity(long arrayLength)
capacity
in interface ByteableLongArrayValues
public long getValueAt(long index) throws IllegalStateException
getValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
public void setValueAt(long index, long value) throws IllegalStateException
setValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
public void bindValueAt(long index, net.openhft.chronicle.core.values.LongValue value)
bindValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
public long getVolatileValueAt(long index) throws IllegalStateException
getVolatileValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
public void setOrderedValueAt(long index, long value) throws IllegalStateException
setOrderedValueAt
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
public boolean compareAndSet(long index, long expected, long value) throws IllegalStateException
compareAndSet
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
public void bytesStore(@NotNull @NotNull BytesStore bytes, long offset, long length) throws IllegalStateException, BufferOverflowException, IllegalArgumentException
Byteable
bytesStore
in interface Byteable
bytesStore
in class AbstractReference
bytes
- the fix point ByteStoreoffset
- the offset within the ByteStorelength
- the length in the ByteStoreIllegalStateException
BufferOverflowException
IllegalArgumentException
public boolean isNull()
isNull
in interface net.openhft.chronicle.core.values.LongArrayValues
public void reset() throws IllegalStateException
reset
in interface net.openhft.chronicle.core.values.LongArrayValues
IllegalStateException
public long maxSize()
@NotNull public @NotNull String toString()
toString
in class net.openhft.chronicle.core.io.AbstractCloseable
public long sizeInBytes(long capacity)
sizeInBytes
in interface ByteableLongArrayValues
sizeInBytes
in interface net.openhft.chronicle.core.values.LongArrayValues
Copyright © 2022. All rights reserved.