public interface RAtomicDouble extends RExpirable, RAtomicDoubleAsync
Modifier and Type | Method and Description |
---|---|
double |
addAndGet(double delta)
Atomically adds the given value to the current value.
|
boolean |
compareAndSet(double expect,
double update)
Atomically sets the value to the given updated value
only if the current value
== the expected value. |
double |
decrementAndGet()
Atomically decrements the current value by one.
|
double |
get()
Gets the current value.
|
double |
getAndAdd(double delta)
Atomically adds the given value to the current value.
|
double |
getAndDecrement()
Atomically decrements by one the current value.
|
double |
getAndIncrement()
Atomically increments the current value by one.
|
double |
getAndSet(double newValue)
Atomically sets the given value and returns the old value.
|
double |
incrementAndGet()
Atomically increments the current value by one.
|
void |
set(double newValue)
Atomically sets the given value.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch, unlink
addAndGetAsync, compareAndSetAsync, decrementAndGetAsync, getAndAddAsync, getAndDecrementAsync, getAndIncrementAsync, getAndSetAsync, getAsync, incrementAndGetAsync, setAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsync
double getAndDecrement()
double addAndGet(double delta)
delta
- the value to addboolean compareAndSet(double expect, double update)
==
the expected value.expect
- the expected valueupdate
- the new valuedouble decrementAndGet()
double get()
double getAndAdd(double delta)
delta
- the value to adddouble getAndSet(double newValue)
newValue
- the new valuedouble incrementAndGet()
double getAndIncrement()
void set(double newValue)
newValue
- the new valueCopyright © 2014–2017 The Redisson Project. All rights reserved.