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
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
@NotNull public static @NotNull LongReference create(BytesStore bytesStore, long offset, int size) throws IllegalArgumentException, BufferOverflowException, BufferUnderflowException, IllegalStateException
public void bytesStore(@NotNull @NotNull BytesStore bytes, long offset, long length) throws IllegalStateException, IllegalArgumentException, BufferUnderflowException
Byteable
bytesStore
in interface Byteable
bytes
- the fix point ByteStoreoffset
- the offset within the ByteStorelength
- the length in the ByteStoreIllegalStateException
IllegalArgumentException
BufferUnderflowException
@NotNull public @NotNull BytesStore bytesStore()
bytesStore
in interface Byteable
public long offset()
public long maxSize()
@NotNull public @NotNull String toString()
toString
in class net.openhft.chronicle.core.io.AbstractCloseable
public long getValue() throws IllegalStateException
getValue
in interface net.openhft.chronicle.core.values.LongValue
IllegalStateException
public void setValue(long value) throws IllegalStateException
setValue
in interface net.openhft.chronicle.core.values.LongValue
IllegalStateException
public long getVolatileValue() throws IllegalStateException
getVolatileValue
in interface net.openhft.chronicle.core.values.LongValue
IllegalStateException
public void setVolatileValue(long value) throws IllegalStateException
setVolatileValue
in interface net.openhft.chronicle.core.values.LongValue
IllegalStateException
public long getVolatileValue(long closedValue)
getVolatileValue
in interface net.openhft.chronicle.core.values.LongValue
public void setOrderedValue(long value) throws IllegalStateException
setOrderedValue
in interface net.openhft.chronicle.core.values.LongValue
IllegalStateException
public long addValue(long delta) throws IllegalStateException
addValue
in interface net.openhft.chronicle.core.values.LongValue
IllegalStateException
public long addAtomicValue(long delta) throws IllegalStateException
addAtomicValue
in interface net.openhft.chronicle.core.values.LongValue
IllegalStateException
public boolean compareAndSwapValue(long expected, long value) throws IllegalStateException
compareAndSwapValue
in interface net.openhft.chronicle.core.values.LongValue
IllegalStateException
protected void performClose() throws IllegalStateException
performClose
in class net.openhft.chronicle.core.io.UnsafeCloseable
IllegalStateException
Copyright © 2022. All rights reserved.