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, remainTimeToLive
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
addAndGetAsync, compareAndSetAsync, decrementAndGetAsync, getAndAddAsync, getAndDecrementAsync, getAndDeleteAsync, getAndIncrementAsync, getAndSetAsync, getAsync, incrementAndGetAsync, setAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, 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 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–2019 The Redisson Project. All rights reserved.