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()
Returns 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()
Returns 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, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkaddAndGetAsync, compareAndSetAsync, decrementAndGetAsync, getAndAddAsync, getAndDecrementAsync, getAndDeleteAsync, getAndIncrementAsync, getAndSetAsync, getAsync, incrementAndGetAsync, setAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsyncaddListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, 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–2020 Redisson. All rights reserved.