public class UnsafeHolder extends Object
Constructor and Description |
---|
UnsafeHolder() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareAndSwapInt(Object instance,
long offset,
int expected,
int newValue) |
static boolean |
compareAndSwapLong(Object instance,
long offset,
long expected,
long newValue) |
static boolean |
compareAndSwapObject(Object instance,
long offset,
Object expected,
Object newValue) |
static int |
getIntVolatile(Object instance,
long offset) |
static Object |
getObjectVolatile(Object instance,
long offset) |
static boolean |
isAvailable() |
static long |
objectFieldOffset(Field field) |
static void |
putIntVolatile(Object instance,
long offset,
int newValue) |
static void |
putObjectVolatile(Object instance,
long offset,
Object newValue) |
public static boolean isAvailable()
public static long objectFieldOffset(Field field)
public static void putObjectVolatile(Object instance, long offset, Object newValue)
public static boolean compareAndSwapObject(Object instance, long offset, Object expected, Object newValue)
public static int getIntVolatile(Object instance, long offset)
public static void putIntVolatile(Object instance, long offset, int newValue)
public static boolean compareAndSwapInt(Object instance, long offset, int expected, int newValue)
public static boolean compareAndSwapLong(Object instance, long offset, long expected, long newValue)
Copyright © GigaSpaces.