public interface RandomDataUpdate
| Modifier and Type | Method and Description |
|---|---|
double |
addAtomicDouble(long offset,
double d) |
float |
addAtomicFloat(long offset,
float f) |
int |
addAtomicInt(long offset,
int i) |
long |
addAtomicLong(long offset,
long l) |
byte |
addByte(long offset,
byte b) |
double |
addDouble(long offset,
double d) |
float |
addFloat(long offset,
float f) |
int |
addInt(long offset,
int i) |
long |
addLong(long offset,
long i) |
short |
addShort(long offset,
short s) |
int |
addUnsignedByte(long offset,
int i) |
long |
addUnsignedInt(long offset,
long i) |
int |
addUnsignedShort(long offset,
int i) |
void |
busyLockInt(long offset)
Lock which uses 4 bytes.
|
void |
busyLockLong(long offset)
Lock across processes
Lock which uses 8 bytes.
|
boolean |
tryLockInt(long offset)
Lock which uses 4 bytes.
|
boolean |
tryLockLong(long offset)
Lock across processes
Lock which uses 8 bytes.
|
boolean |
tryLockNanosInt(long offset,
long nanos)
Lock which uses 4 bytes.
|
boolean |
tryLockNanosLong(long offset,
long nanos)
Lock across processes
Lock which uses 8 bytes.
|
void |
unlockInt(long offset)
Lock which uses 4 bytes.
|
void |
unlockLong(long offset)
Lock across processes
Lock which uses 8 bytes.
|
byte addByte(long offset,
byte b)
int addUnsignedByte(long offset,
int i)
short addShort(long offset,
short s)
int addUnsignedShort(long offset,
int i)
int addInt(long offset,
int i)
long addUnsignedInt(long offset,
long i)
long addLong(long offset,
long i)
float addFloat(long offset,
float f)
double addDouble(long offset,
double d)
int addAtomicInt(long offset,
int i)
long addAtomicLong(long offset,
long l)
float addAtomicFloat(long offset,
float f)
double addAtomicDouble(long offset,
double d)
boolean tryLockInt(long offset)
offset - of the start of the 4-byte lockboolean tryLockNanosInt(long offset,
long nanos)
offset - of the start of the 4-byte locknanos - to try to lock forvoid busyLockInt(long offset)
throws InterruptedException,
IllegalStateException
offset - of the start of the 4-byte lockInterruptedException - if interruptedIllegalStateException - if the thread tries to lock it 255 nested time (without an unlock)void unlockInt(long offset)
throws IllegalMonitorStateException
offset - of the start of the 4-byte lockIllegalMonitorStateException - if this thread doesn't hold the lockboolean tryLockLong(long offset)
offset - of the start of the 8-byte lockboolean tryLockNanosLong(long offset,
long nanos)
offset - of the start of the 8-byte locknanos - to try to lock forvoid busyLockLong(long offset)
throws InterruptedException,
IllegalStateException
offset - of the start of the 8-byte lockInterruptedException - if interruptedIllegalStateException - if the thread tries to lock it 65535 nested time (without an unlock)void unlockLong(long offset)
throws IllegalMonitorStateException
offset - of the start of the 8-byte lockIllegalMonitorStateException - if this thread doesn't hold the lockCopyright © 2014. All Rights Reserved.