public interface AtomicUtils
| 限定符和类型 | 方法和说明 |
|---|---|
static <E,THROWABLE extends Throwable> |
updateAndGet(AtomicReference<E> reference,
CheckedFunction<E,E,THROWABLE> update)
Similar to
AtomicReference.updateAndGet(java.util.function.UnaryOperator)
except that the update function is checked. |
static void |
updateMax(AtomicLong max,
long value)
Updates a AtomicLong which is supposed to maintain the maximum values.
|
static void |
updateMin(AtomicLong min,
long value)
Updates a AtomicLong which is supposed to maintain the minimum values.
|
static void updateMin(AtomicLong min, long value)
static void updateMax(AtomicLong max, long value)
static <E,THROWABLE extends Throwable> E updateAndGet(AtomicReference<E> reference, CheckedFunction<E,E,THROWABLE> update) throws THROWABLE extends Throwable
AtomicReference.updateAndGet(java.util.function.UnaryOperator)
except that the update function is checked.THROWABLE extends ThrowableCopyright © 2017–2021 The Apache Software Foundation. All rights reserved.