public class UncheckedLongReference extends net.openhft.chronicle.core.io.UnsafeCloseable implements LongReference, net.openhft.chronicle.core.io.ReferenceOwner
| Constructor and Description |
|---|
UncheckedLongReference() |
| Modifier and Type | Method and Description |
|---|---|
long |
addAtomicValue(long delta) |
long |
addValue(long delta) |
@NotNull BytesStore |
bytesStore() |
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) |
static @NotNull LongReference |
create(BytesStore bytesStore,
long offset,
int size) |
long |
getValue() |
long |
getVolatileValue() |
long |
getVolatileValue(long closedValue) |
long |
maxSize() |
long |
offset() |
protected void |
performClose() |
void |
setOrderedValue(long value) |
void |
setValue(long value) |
void |
setVolatileValue(long value) |
@NotNull String |
toString() |
addAtomicLong, addLong, address, compareAndSwapLong, getLong, getVolatileLong, getVolatileLong, setLong, setOrderedLong, setVolatileLong, threadSafetyCheckassertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, enableCloseableTracing, isClosed, isClosing, isInUserThread, performCloseInBackground, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForClosed, warnAndCloseIfNotClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetMaxValue, setMinValue@NotNull public static @NotNull LongReference create(BytesStore bytesStore, long offset, int size)
public void bytesStore(@NotNull
@NotNull BytesStore bytes,
long offset,
long length)
ByteablebytesStore in interface Byteablebytes - the fix point ByteStoreoffset - the offset within the ByteStorelength - the length in the ByteStore@NotNull public @NotNull BytesStore bytesStore()
bytesStore in interface Byteablepublic long maxSize()
@NotNull public @NotNull String toString()
toString in class net.openhft.chronicle.core.io.AbstractCloseablepublic 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 setVolatileValue(long value)
setVolatileValue in interface net.openhft.chronicle.core.values.LongValuepublic long getVolatileValue(long closedValue)
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.LongValueprotected void performClose()
performClose in class net.openhft.chronicle.core.io.UnsafeCloseableCopyright © 2020. All rights reserved.