public interface RAtomicDoubleReactive extends RExpirableReactive
Modifier and Type | Method and Description |
---|---|
org.reactivestreams.Publisher<Double> |
addAndGet(double delta)
Atomically adds the given value to the current value.
|
org.reactivestreams.Publisher<Boolean> |
compareAndSet(double expect,
double update)
Atomically sets the value to the given updated value
only if the current value
== the expected value. |
org.reactivestreams.Publisher<Double> |
decrementAndGet()
Atomically decrements the current value by one.
|
org.reactivestreams.Publisher<Double> |
get()
Returns current value.
|
org.reactivestreams.Publisher<Double> |
getAndAdd(double delta)
Atomically adds the given value to the current value.
|
org.reactivestreams.Publisher<Double> |
getAndDecrement()
Atomically decrements by one the current value.
|
org.reactivestreams.Publisher<Double> |
getAndDelete()
Returns and deletes object
|
org.reactivestreams.Publisher<Double> |
getAndIncrement()
Atomically increments the current value by one.
|
org.reactivestreams.Publisher<Double> |
getAndSet(double newValue)
Atomically sets the given value and returns the old value.
|
org.reactivestreams.Publisher<Double> |
incrementAndGet()
Atomically increments the current value by one.
|
org.reactivestreams.Publisher<Void> |
set(double newValue)
Atomically sets the given value.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
org.reactivestreams.Publisher<Boolean> compareAndSet(double expect, double update)
==
the expected value.expect
- the expected valueupdate
- the new valueorg.reactivestreams.Publisher<Double> addAndGet(double delta)
delta
- the value to addorg.reactivestreams.Publisher<Double> decrementAndGet()
org.reactivestreams.Publisher<Double> get()
org.reactivestreams.Publisher<Double> getAndDelete()
org.reactivestreams.Publisher<Double> getAndAdd(double delta)
delta
- the value to addorg.reactivestreams.Publisher<Double> getAndSet(double newValue)
newValue
- the new valueorg.reactivestreams.Publisher<Double> incrementAndGet()
org.reactivestreams.Publisher<Double> getAndIncrement()
org.reactivestreams.Publisher<Double> getAndDecrement()
org.reactivestreams.Publisher<Void> set(double newValue)
newValue
- the new valueCopyright © 2014–2019 The Redisson Project. All rights reserved.