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
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)