public class BinaryLongReference extends AbstractReference implements LongReference
Modifier and Type | Field and Description |
---|---|
static long |
LONG_NOT_COMPLETE |
bytes, offset
Constructor and Description |
---|
BinaryLongReference() |
Modifier and Type | Method and Description |
---|---|
long |
addAtomicValue(long delta) |
long |
addValue(long delta) |
void |
bytesStore(@NotNull BytesStore bytes,
long offset,
long length)
This setter for a data type which points to an underlying ByteStore.
|
boolean |
compareAndSwapValue(long expected,
long value) |
long |
getValue() |
long |
getVolatileValue() |
long |
getVolatileValue(long closedValue) |
long |
maxSize() |
void |
setOrderedValue(long value) |
void |
setValue(long value) |
void |
setVolatileValue(long value) |
@NotNull String |
toString() |
acceptNewBytesStore, address, bytesStore, offset, performClose, threadSafetyCheck
assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, enableCloseableTracing, isClosed, isClosing, isInUserThread, performCloseInBackground, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForClosed, warnAndCloseIfNotClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setMaxValue, setMinValue
bytesStore, offset
close, closeQuietly, closeQuietly, notifyClosing
public static final long LONG_NOT_COMPLETE
public void bytesStore(@NotNull @NotNull BytesStore bytes, long offset, long length) throws IllegalStateException, IllegalArgumentException, BufferOverflowException, BufferUnderflowException
Byteable
bytesStore
in interface Byteable
bytesStore
in class AbstractReference
bytes
- the fix point ByteStoreoffset
- the offset within the ByteStorelength
- the length in the ByteStoreIllegalStateException
IllegalArgumentException
BufferOverflowException
BufferUnderflowException
public long maxSize()
maxSize
in interface Byteable
maxSize
in class AbstractReference
@NotNull public @NotNull String toString()
toString
in class net.openhft.chronicle.core.io.AbstractCloseable
public long getValue()
getValue
in interface net.openhft.chronicle.core.values.LongValue
public void setValue(long value)
setValue
in interface net.openhft.chronicle.core.values.LongValue
public long getVolatileValue()
getVolatileValue
in interface net.openhft.chronicle.core.values.LongValue
public void setVolatileValue(long value)
setVolatileValue
in interface net.openhft.chronicle.core.values.LongValue
public long getVolatileValue(long closedValue)
getVolatileValue
in interface net.openhft.chronicle.core.values.LongValue
public void setOrderedValue(long value)
setOrderedValue
in interface net.openhft.chronicle.core.values.LongValue
public long addValue(long delta)
addValue
in interface net.openhft.chronicle.core.values.LongValue
public long addAtomicValue(long delta)
addAtomicValue
in interface net.openhft.chronicle.core.values.LongValue
public boolean compareAndSwapValue(long expected, long value)
compareAndSwapValue
in interface net.openhft.chronicle.core.values.LongValue
Copyright © 2020. All rights reserved.