org.jboss.util.concurrent.atomic
Class AtomicIntegerFieldUpdater<T>
java.lang.Object
org.jboss.util.concurrent.atomic.AtomicIntegerFieldUpdater<T>
public abstract class AtomicIntegerFieldUpdater<T>
- extends Object
AtomicIntegerFieldUpdater.
- Version:
- $Revision: 200 $
- Author:
- Adrian Brock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AtomicIntegerFieldUpdater
protected AtomicIntegerFieldUpdater()
- Create a new AtomicIntegerFieldUpdater.
newUpdater
public static <U> AtomicIntegerFieldUpdater<U> newUpdater(Class<U> tClass,
String fieldName)
addAndGet
public int addAndGet(T obj,
int delta)
compareAndSet
public abstract boolean compareAndSet(T obj,
int expect,
int update)
decrementAndGet
public int decrementAndGet(T obj)
get
public abstract int get(T obj)
getAndAdd
public int getAndAdd(T obj,
int delta)
getAndDecrement
public int getAndDecrement(T obj)
getAndIncrement
public int getAndIncrement(T obj)
getAndSet
public int getAndSet(T obj,
int newValue)
incrementAndGet
public int incrementAndGet(T obj)
set
public abstract void set(T obj,
int newValue)
weakCompareAndSet
public abstract boolean weakCompareAndSet(T obj,
int expect,
int update)
Copyright © 2005-2007 JBoss, a division of Red Hat, Inc. All Rights Reserved.