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