public class TextIntReference extends AbstractReference implements net.openhft.chronicle.core.values.IntValue
bytes, offset
Constructor and Description |
---|
TextIntReference() |
Modifier and Type | Method and Description |
---|---|
int |
addAtomicValue(int delta) |
int |
addValue(int delta) |
void |
bytesStore(@NotNull BytesStore bytes,
long offset,
long length)
This setter for a data type which points to an underlying ByteStore.
|
boolean |
compareAndSwapValue(int expected,
int value) |
int |
getValue() |
int |
getVolatileValue() |
long |
maxSize() |
void |
setOrderedValue(int value) |
void |
setValue(int value) |
@NotNull String |
toString() |
static void |
write(@NotNull Bytes<?> bytes,
int value) |
acceptNewBytesStore, address, bytesStore, lock, offset, performClose, tryLock
assertCloseable, assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, disableThreadSafetyCheck, disableThreadSafetyCheck, enableCloseableTracing, gcAndWaitForCloseablesToClose, isClosed, isClosing, isInUserThread, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, singleThreadedCheckDisabled, singleThreadedCheckDisabled, singleThreadedCheckReset, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosed
public static void write(@NotNull @NotNull Bytes<?> bytes, int value) throws BufferOverflowException, IllegalStateException
public int getValue() throws IllegalStateException
getValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
public void setValue(int value) throws IllegalStateException
setValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
public int getVolatileValue() throws IllegalStateException
getVolatileValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
public void setOrderedValue(int value) throws IllegalStateException
setOrderedValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
public int addValue(int delta) throws IllegalStateException
addValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
public int addAtomicValue(int delta) throws IllegalStateException
addAtomicValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
public boolean compareAndSwapValue(int expected, int value) throws IllegalStateException
compareAndSwapValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
public void bytesStore(@NotNull @NotNull BytesStore bytes, long offset, long length) throws IllegalStateException, IllegalArgumentException, BufferOverflowException
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
public long maxSize()
@NotNull public @NotNull String toString()
toString
in class net.openhft.chronicle.core.io.AbstractCloseable
Copyright © 2022. All rights reserved.