Package org.cometd.benchmark
Class Atomics
java.lang.Object
org.cometd.benchmark.Atomics
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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)
-
Constructor Details
-
Atomics
public Atomics()
-
-
Method Details
-
updateMin
-
updateMax
-
updateMin
-
updateMax
-
decrement
-
updateMax
-