public class BinaryIntReference extends AbstractReference implements net.openhft.chronicle.core.values.IntValue
Modifier and Type | Field and Description |
---|---|
static int |
INT_NOT_COMPLETE |
bytes, offset
Constructor and Description |
---|
BinaryIntReference() |
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() |
acceptNewBytesStore, address, bytesStore, lock, offset, performClose, threadSafetyCheck, tryLock
assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, enableCloseableTracing, isClosed, isClosing, isInUserThread, performCloseInBackground, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
closeQuietly, closeQuietly, notifyClosing, warnAndCloseIfNotClosed
public static final int INT_NOT_COMPLETE
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()
maxSize
in interface Byteable
maxSize
in class AbstractReference
@NotNull public @NotNull String toString()
toString
in class net.openhft.chronicle.core.io.AbstractCloseable
public int getValue() throws IllegalStateException, BufferUnderflowException
getValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
BufferUnderflowException
public void setValue(int value) throws IllegalStateException, BufferOverflowException
setValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
BufferOverflowException
public int getVolatileValue() throws IllegalStateException, BufferUnderflowException
getVolatileValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
BufferUnderflowException
public void setOrderedValue(int value) throws IllegalStateException, BufferOverflowException
setOrderedValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
BufferOverflowException
public int addValue(int delta) throws IllegalStateException, BufferUnderflowException
addValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
BufferUnderflowException
public int addAtomicValue(int delta) throws IllegalStateException, BufferUnderflowException
addAtomicValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
BufferUnderflowException
public boolean compareAndSwapValue(int expected, int value) throws IllegalStateException, BufferOverflowException
compareAndSwapValue
in interface net.openhft.chronicle.core.values.IntValue
IllegalStateException
BufferOverflowException
Copyright © 2021. All rights reserved.