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