public final class AtomicUpdater extends Object
volatile fields of designated classes.
jupiter
org.jupiter.common.concurrent.atomic| 限定符和类型 | 方法和说明 |
|---|---|
static <U,W> AtomicReferenceFieldUpdater<U,W> |
newAtomicReferenceFieldUpdater(Class<U> tClass,
Class<W> vClass,
String fieldName)
Creates and returns an updater for objects with the given field.
|
public static <U,W> AtomicReferenceFieldUpdater<U,W> newAtomicReferenceFieldUpdater(Class<U> tClass, Class<W> vClass, String fieldName)
tClass - the class of the objects holding the field.vClass - the class of the fieldfieldName - the name of the field to be updated.Copyright © 2018. All rights reserved.