public interface RAtomicDoubleRx extends RExpirableRx
Modifier and Type | Method and Description |
---|---|
io.reactivex.Flowable<Double> |
addAndGet(double delta)
Atomically adds the given value to the current value.
|
io.reactivex.Flowable<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.Flowable<Double> |
decrementAndGet()
Atomically decrements the current value by one.
|
io.reactivex.Flowable<Double> |
get()
Returns current value.
|
io.reactivex.Flowable<Double> |
getAndAdd(double delta)
Atomically adds the given value to the current value.
|
io.reactivex.Flowable<Double> |
getAndDecrement()
Atomically decrements by one the current value.
|
io.reactivex.Flowable<Double> |
getAndDelete()
Returns and deletes object
|
io.reactivex.Flowable<Double> |
getAndIncrement()
Atomically increments the current value by one.
|
io.reactivex.Flowable<Double> |
getAndSet(double newValue)
Atomically sets the given value and returns the old value.
|
io.reactivex.Flowable<Double> |
incrementAndGet()
Atomically increments the current value by one.
|
io.reactivex.Flowable<Void> |
set(double newValue)
Atomically sets the given value.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
io.reactivex.Flowable<Boolean> compareAndSet(double expect, double update)
==
the expected value.expect
- the expected valueupdate
- the new valueio.reactivex.Flowable<Double> addAndGet(double delta)
delta
- the value to addio.reactivex.Flowable<Double> decrementAndGet()
io.reactivex.Flowable<Double> get()
io.reactivex.Flowable<Double> getAndDelete()
io.reactivex.Flowable<Double> getAndAdd(double delta)
delta
- the value to addio.reactivex.Flowable<Double> getAndSet(double newValue)
newValue
- the new valueio.reactivex.Flowable<Double> incrementAndGet()
io.reactivex.Flowable<Double> getAndIncrement()
io.reactivex.Flowable<Double> getAndDecrement()
io.reactivex.Flowable<Void> set(double newValue)
newValue
- the new valueCopyright © 2014–2018 The Redisson Project. All rights reserved.