public class AtomicReferenceFieldUpdater<T,V> extends Object
Modifier | Constructor and Description |
---|---|
protected |
AtomicReferenceFieldUpdater(Class<T> objClass,
Class<V> fieldClass,
String fieldName) |
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndSet(T obj,
V expect,
V update) |
V |
get(T obj) |
V |
getAndSet(T obj,
V newValue) |
void |
lazySet(T obj,
V newValue) |
static <O,F> AtomicReferenceFieldUpdater<O,F> |
newUpdater(Class<O> objClass,
Class<F> fieldClass,
String fieldName) |
void |
set(T obj,
V newValue) |
boolean |
weakCompareAndSet(T obj,
V expect,
V update) |
public static <O,F> AtomicReferenceFieldUpdater<O,F> newUpdater(Class<O> objClass, Class<F> fieldClass, String fieldName)