public class Atomics extends Object
Constructor and Description |
---|
Atomics() |
Modifier and Type | Method and Description |
---|---|
static <T> int |
decrement(AtomicStampedReference<T> reference) |
static void |
updateMax(AtomicInteger currentMax,
int newValue) |
static void |
updateMax(AtomicLong currentMax,
long newValue) |
static <T> boolean |
updateMax(AtomicStampedReference<T> reference,
T value,
int stamp) |
static void |
updateMin(AtomicInteger currentMin,
int newValue) |
static void |
updateMin(AtomicLong currentMin,
long newValue) |
public static void updateMin(AtomicLong currentMin, long newValue)
public static void updateMax(AtomicLong currentMax, long newValue)
public static void updateMin(AtomicInteger currentMin, int newValue)
public static void updateMax(AtomicInteger currentMax, int newValue)
public static <T> int decrement(AtomicStampedReference<T> reference)
public static <T> boolean updateMax(AtomicStampedReference<T> reference, T value, int stamp)
Copyright © 2008–2024 The CometD Project. All rights reserved.