|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AtomicNumber
AtomicNumber is a backed-up distributed implementation of
java.util.concurrent.atomic.AtomicLong.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.hazelcast.core.Instance |
|---|
Instance.InstanceType |
| Method Summary | |
|---|---|
long |
addAndGet(long delta)
Atomically adds the given value to the current value. |
boolean |
compareAndSet(long expect,
long update)
Atomically sets the value to the given updated value only if the current value == the expected value. |
long |
decrementAndGet()
Atomically decrements the current value by one. |
long |
get()
Gets the current value. |
long |
getAndAdd(long delta)
Atomically adds the given value to the current value. |
long |
getAndSet(long newValue)
Atomically sets the given value and returns the old value. |
LocalAtomicNumberStats |
getLocalAtomicNumberStats()
|
String |
getName()
Returns the name of this IAtomicLong instance. |
long |
incrementAndGet()
Atomically increments the current value by one. |
void |
lazySet(long newValue)
Deprecated. |
void |
set(long newValue)
Atomically sets the given value. |
boolean |
weakCompareAndSet(long expect,
long update)
Deprecated. |
| Methods inherited from interface com.hazelcast.core.Instance |
|---|
destroy, getId, getInstanceType |
| Method Detail |
|---|
String getName()
long addAndGet(long delta)
delta - the value to add
boolean compareAndSet(long expect,
long update)
== the expected value.
expect - the expected valueupdate - the new value
long decrementAndGet()
long get()
long getAndAdd(long delta)
delta - the value to add
long getAndSet(long newValue)
newValue - the new value
long incrementAndGet()
void set(long newValue)
newValue - the new value
@Deprecated
boolean weakCompareAndSet(long expect,
long update)
@Deprecated void lazySet(long newValue)
LocalAtomicNumberStats getLocalAtomicNumberStats()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||