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, offset, performClose, threadSafetyCheck
assertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, enableCloseableTracing, isClosed, isClosing, isInUserThread, performCloseInBackground, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForClosed, warnAndCloseIfNotClosed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close, closeQuietly, closeQuietly, notifyClosing
public static final int INT_NOT_COMPLETE
public void bytesStore(@NotNull @NotNull BytesStore bytes, long offset, long length) throws IllegalStateException, IllegalArgumentException, BufferOverflowException, BufferUnderflowException
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
BufferUnderflowException
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()
getValue
in interface net.openhft.chronicle.core.values.IntValue
public void setValue(int value)
setValue
in interface net.openhft.chronicle.core.values.IntValue
public int getVolatileValue()
getVolatileValue
in interface net.openhft.chronicle.core.values.IntValue
public void setOrderedValue(int value)
setOrderedValue
in interface net.openhft.chronicle.core.values.IntValue
public int addValue(int delta)
addValue
in interface net.openhft.chronicle.core.values.IntValue
public int addAtomicValue(int delta)
addAtomicValue
in interface net.openhft.chronicle.core.values.IntValue
public boolean compareAndSwapValue(int expected, int value)
compareAndSwapValue
in interface net.openhft.chronicle.core.values.IntValue
Copyright © 2020. All rights reserved.