public final class AtomicReferenceFieldUpdaterImpl<T,V> extends AtomicReferenceFieldUpdater<T,V>
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
compareAndSet(T bean,
V expect,
V update) |
V |
get(T bean) |
void |
lazySet(T bean,
V newValue) |
static <T,V> AtomicReferenceFieldUpdater<T,V> |
newUpdater(Class<T> beanClass,
Class<V> fieldType,
String fieldName) |
void |
set(T bean,
V newValue) |
boolean |
weakCompareAndSet(T bean,
V expect,
V update) |
accumulateAndGet, getAndAccumulate, getAndSet, getAndUpdate, newUpdater, updateAndGetpublic static <T,V> AtomicReferenceFieldUpdater<T,V> newUpdater(Class<T> beanClass, Class<V> fieldType, String fieldName)
public final boolean compareAndSet(T bean, V expect, V update)
compareAndSet 在类中 AtomicReferenceFieldUpdater<T,V>public final boolean weakCompareAndSet(T bean, V expect, V update)
weakCompareAndSet 在类中 AtomicReferenceFieldUpdater<T,V>public final void lazySet(T bean, V newValue)
lazySet 在类中 AtomicReferenceFieldUpdater<T,V>Copyright © 2023. All rights reserved.