org.cometd.benchmark
Class Atomics

java.lang.Object
  extended by org.cometd.benchmark.Atomics

public class Atomics
extends Object


Constructor Summary
Atomics()
           
 
Method Summary
static
<T> int
decrement(AtomicStampedReference<T> reference)
           
static void updateMax(AtomicInteger currentMax, int newValue)
           
static void updateMax(AtomicLong currentMax, long newValue)
           
static void updateMin(AtomicInteger currentMin, int newValue)
           
static void updateMin(AtomicLong currentMin, long newValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Atomics

public Atomics()
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)


Copyright © 2008-2012 Dojo Foundation. All Rights Reserved.