Package org.cometd.benchmark
Class Atomics
- java.lang.Object
-
- org.cometd.benchmark.Atomics
-
public class Atomics extends Object
-
-
Constructor Summary
Constructors Constructor Description Atomics()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
updateMin
public static void updateMin(AtomicLong currentMin, long newValue)
-
updateMax
public static void updateMax(AtomicLong currentMax, long newValue)
-
updateMin
public static void updateMin(AtomicInteger currentMin, int newValue)
-
updateMax
public static void updateMax(AtomicInteger currentMax, int newValue)
-
decrement
public static <T> int decrement(AtomicStampedReference<T> reference)
-
updateMax
public static <T> boolean updateMax(AtomicStampedReference<T> reference, T value, int stamp)
-
-