public class UncheckedLongReference extends Object implements LongReference
Constructor and Description |
---|
UncheckedLongReference() |
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 LongReference |
create(BytesStore bytesStore,
long offset,
int size) |
long |
getValue() |
long |
getVolatileValue() |
long |
maxSize() |
long |
offset() |
void |
setOrderedValue(long value) |
void |
setValue(long value) |
String |
toString() |
@NotNull public static LongReference create(BytesStore bytesStore, long offset, int size)
public void bytesStore(@NotNull BytesStore bytes, long offset, long length)
Byteable
bytesStore
in interface Byteable
bytes
- the fix point ByteStoreoffset
- the offset within the ByteStorelength
- the length in the ByteStore@NotNull public BytesStore bytesStore()
bytesStore
in interface Byteable
public long maxSize()
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 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 © 2018. All rights reserved.