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