|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AtomicBuffer
Abstraction over a range of buffer types that allows type to be accessed with memory ordering semantics.
Method Summary | |
---|---|
void |
addIntOrdered(int index,
int increment)
Add a value to a given index with ordered store semantics. |
void |
addLongOrdered(int index,
long increment)
Add a value to a given index with ordered store semantics. |
boolean |
compareAndSetInt(int index,
int expectedValue,
int updateValue)
Atomic compare and set of a int given an expected value. |
boolean |
compareAndSetLong(int index,
long expectedValue,
long updateValue)
Performs an atomic compare and set of a long, given an expected value. |
int |
getIntVolatile(int index)
Get the value at a given index with volatile semantics. |
long |
getLongVolatile(int index)
Get the value at a given index with volatile semantics. |
short |
getShortVolatile(int index)
Get the value at a given index with volatile semantics. |
void |
putIntOrdered(int index,
int value)
Put a value to a given index with ordered semantics. |
void |
putIntVolatile(int index,
int value)
Put a value to a given index with volatile semantics. |
void |
putLongOrdered(int index,
long value)
Put a value to a given index with ordered store semantics. |
void |
putLongVolatile(int index,
long value)
Put a value to a given index with volatile semantics. |
void |
putShortVolatile(int index,
short value)
Put a value to a given index with volatile semantics. |
Methods inherited from interface com.hazelcast.client.impl.protocol.util.MutableDirectBuffer |
---|
putByte, putBytes, putBytes, putBytes, putBytes, putBytes, putDouble, putDouble, putFloat, putFloat, putInt, putInt, putLong, putLong, putShort, putShort, putStringUtf8, putStringUtf8, putStringWithoutLengthUtf8, setMemory |
Methods inherited from interface com.hazelcast.client.impl.protocol.util.DirectBuffer |
---|
addressOffset, boundsCheck, byteArray, byteBuffer, capacity, checkLimit, getByte, getBytes, getBytes, getBytes, getBytes, getDouble, getDouble, getFloat, getFloat, getInt, getInt, getLong, getLong, getShort, getShort, getStringUtf8, getStringUtf8, getStringWithoutLengthUtf8, wrap, wrap, wrap, wrap, wrap, wrap, wrap |
Method Detail |
---|
long getLongVolatile(int index)
index
- The index in bytes from where to get the value.
void putLongVolatile(int index, long value)
index
- The index in bytes for where to put the value.value
- The value to put at the given index.void putLongOrdered(int index, long value)
index
- The index in bytes for where to put the value.value
- The value to put at the given index.void addLongOrdered(int index, long increment)
index
- The index in bytes for where to increment or decrement the value.increment
- The increment or decrement by which the value at the index will be adjusted.boolean compareAndSetLong(int index, long expectedValue, long updateValue)
index
- The index in bytes for where to put the value.expectedValue
- at to be compared The expected value that is compared to the value at the index.updateValue
- The value to be exchanged with the value at the index.
int getIntVolatile(int index)
index
- The index in bytes from where to get the value.
void putIntVolatile(int index, int value)
index
- The index in bytes for where to put the value.value
- The value to put at the given index.void putIntOrdered(int index, int value)
index
- The index in bytes for where to put the value.value
- The value to put at the given index.void addIntOrdered(int index, int increment)
index
- The index in bytes for where to put the value.increment
- by which the value at the index will be adjusted.boolean compareAndSetInt(int index, int expectedValue, int updateValue)
index
- The index in bytes for where to put the value.expectedValue
- at to be compared The expected value that is compared to the value at the index.updateValue
- The value to be exchanged with the value at the index.
short getShortVolatile(int index)
index
- The index in bytes from where to get the value.
void putShortVolatile(int index, short value)
index
- The index in bytes for where to put the value.value
- The value to put at the given index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |