public class BinaryLongReference extends Object implements LongReference
| Modifier and Type | Field and Description |
|---|---|
protected BytesStore |
bytes |
static long |
LONG_NOT_COMPLETE |
protected long |
offset |
| Constructor and Description |
|---|
BinaryLongReference() |
| Modifier and Type | Method and Description |
|---|---|
long |
addAtomicValue(long delta) |
long |
addValue(long delta) |
BytesStore |
bytesStore() |
void |
bytesStore(BytesStore bytes,
long offset,
long length)
This setter for a data type which points to an underlying ByteStore.
|
boolean |
compareAndSwapValue(long expected,
long value) |
static void |
forceAllToNotCompleteState()
only used for testing
|
long |
getValue() |
long |
getVolatileValue() |
long |
maxSize() |
long |
offset() |
void |
setOrderedValue(long value) |
void |
setValue(long value) |
static void |
startCollecting()
only used for testing
|
String |
toString() |
public static final long LONG_NOT_COMPLETE
@Nullable protected BytesStore bytes
protected long offset
public static void startCollecting()
public static void forceAllToNotCompleteState()
public void bytesStore(@NotNull
BytesStore bytes,
long offset,
long length)
ByteablebytesStore in interface Byteablebytes - the fix point ByteStoreoffset - the offset within the ByteStorelength - the length in the ByteStorepublic BytesStore bytesStore()
bytesStore in interface Byteablepublic long maxSize()
public long getValue()
getValue in interface net.openhft.chronicle.core.values.LongValuepublic void setValue(long value)
setValue in interface net.openhft.chronicle.core.values.LongValuepublic long getVolatileValue()
getVolatileValue in interface net.openhft.chronicle.core.values.LongValuepublic void setOrderedValue(long value)
setOrderedValue in interface net.openhft.chronicle.core.values.LongValuepublic long addValue(long delta)
addValue in interface net.openhft.chronicle.core.values.LongValuepublic long addAtomicValue(long delta)
addAtomicValue in interface net.openhft.chronicle.core.values.LongValuepublic boolean compareAndSwapValue(long expected,
long value)
compareAndSwapValue in interface net.openhft.chronicle.core.values.LongValueCopyright © 2018. All rights reserved.