public class SegmentedAtomicInteger extends Number
Constructor and Description |
---|
SegmentedAtomicInteger() |
SegmentedAtomicInteger(int initialValue) |
SegmentedAtomicInteger(int initialValue,
int concurrencyLevel) |
Modifier and Type | Method and Description |
---|---|
void |
add(int delta) |
int |
addAndGet(int delta) |
void |
decrement() |
int |
decrementAndGet() |
double |
doubleValue() |
float |
floatValue() |
int |
get() |
void |
increment() |
int |
incrementAndGet() |
int |
intValue() |
long |
longValue() |
void |
reset()
Reset the counter in a non atomic fashion, at a quiscient state this method will reset the
counter to its initial value, but in a concurrent state, interleaving operations affect is
not deterministic and may be overridden or accumulated.
|
byteValue, shortValue
public SegmentedAtomicInteger()
public SegmentedAtomicInteger(int initialValue)
public SegmentedAtomicInteger(int initialValue, int concurrencyLevel)
public void decrement()
public void increment()
public void add(int delta)
public int decrementAndGet()
public int incrementAndGet()
public int addAndGet(int delta)
public int get()
public double doubleValue()
doubleValue
in class Number
public float floatValue()
floatValue
in class Number
public void reset()
Copyright © GigaSpaces.