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 |
getAndDelete()
Gets and deletes object
|
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, remainTimeToLivecopy, delete, getCodec, getName, isExists, migrate, move, rename, renamenx, touch, unlinkaddAndGetAsync, compareAndSetAsync, decrementAndGetAsync, getAndAddAsync, getAndDecrementAsync, getAndDeleteAsync, getAndIncrementAsync, getAndSetAsync, getAsync, incrementAndGetAsync, setAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsynccopyAsync, deleteAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, touchAsync, unlinkAsyncdouble 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 getAndDelete()
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–2018 The Redisson Project. All rights reserved.