public interface RAtomicDoubleRx extends RExpirableRx
Modifier and Type | Method and Description |
---|---|
io.reactivex.Single<Double> |
addAndGet(double delta)
Atomically adds the given value to the current value.
|
io.reactivex.Single<Boolean> |
compareAndSet(double expect,
double update)
Atomically sets the value to the given updated value
only if the current value
== the expected value. |
io.reactivex.Single<Double> |
decrementAndGet()
Atomically decrements the current value by one.
|
io.reactivex.Single<Double> |
get()
Returns current value.
|
io.reactivex.Single<Double> |
getAndAdd(double delta)
Atomically adds the given value to the current value.
|
io.reactivex.Single<Double> |
getAndDecrement()
Atomically decrements by one the current value.
|
io.reactivex.Single<Double> |
getAndDelete()
Returns and deletes object
|
io.reactivex.Single<Double> |
getAndIncrement()
Atomically increments the current value by one.
|
io.reactivex.Single<Double> |
getAndSet(double newValue)
Atomically sets the given value and returns the old value.
|
io.reactivex.Single<Double> |
incrementAndGet()
Atomically increments the current value by one.
|
io.reactivex.Completable |
set(double newValue)
Atomically sets the given value.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
io.reactivex.Single<Boolean> compareAndSet(double expect, double update)
==
the expected value.expect
- the expected valueupdate
- the new valueio.reactivex.Single<Double> addAndGet(double delta)
delta
- the value to addio.reactivex.Single<Double> decrementAndGet()
io.reactivex.Single<Double> get()
io.reactivex.Single<Double> getAndDelete()
io.reactivex.Single<Double> getAndAdd(double delta)
delta
- the value to addio.reactivex.Single<Double> getAndSet(double newValue)
newValue
- the new valueio.reactivex.Single<Double> incrementAndGet()
io.reactivex.Single<Double> getAndIncrement()
io.reactivex.Single<Double> getAndDecrement()
io.reactivex.Completable set(double newValue)
newValue
- the new valueCopyright © 2014–2020 Redisson. All rights reserved.