public interface RAtomicLongReactive extends RExpirableReactive
Modifier and Type | Method and Description |
---|---|
reactor.core.publisher.Mono<Long> |
addAndGet(long delta)
Atomically adds the given value to the current value.
|
reactor.core.publisher.Mono<Boolean> |
compareAndSet(long expect,
long update)
Atomically sets the value to the given updated value
only if the current value
== the expected value. |
reactor.core.publisher.Mono<Long> |
decrementAndGet()
Atomically decrements the current value by one.
|
reactor.core.publisher.Mono<Long> |
get()
Returns current value.
|
reactor.core.publisher.Mono<Long> |
getAndAdd(long delta)
Atomically adds the given value to the current value.
|
reactor.core.publisher.Mono<Long> |
getAndDecrement()
Atomically decrements by one the current value.
|
reactor.core.publisher.Mono<Long> |
getAndDelete()
Returns and deletes object
|
reactor.core.publisher.Mono<Long> |
getAndIncrement()
Atomically increments the current value by one.
|
reactor.core.publisher.Mono<Long> |
getAndSet(long newValue)
Atomically sets the given value and returns the old value.
|
reactor.core.publisher.Mono<Long> |
incrementAndGet()
Atomically increments the current value by one.
|
reactor.core.publisher.Mono<Void> |
set(long newValue)
Atomically sets the given value.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
reactor.core.publisher.Mono<Boolean> compareAndSet(long expect, long update)
==
the expected value.expect
- the expected valueupdate
- the new valuereactor.core.publisher.Mono<Long> addAndGet(long delta)
delta
- the value to addreactor.core.publisher.Mono<Long> decrementAndGet()
reactor.core.publisher.Mono<Long> get()
reactor.core.publisher.Mono<Long> getAndDelete()
reactor.core.publisher.Mono<Long> getAndAdd(long delta)
delta
- the value to addreactor.core.publisher.Mono<Long> getAndSet(long newValue)
newValue
- the new valuereactor.core.publisher.Mono<Long> incrementAndGet()
reactor.core.publisher.Mono<Long> getAndIncrement()
reactor.core.publisher.Mono<Long> getAndDecrement()
reactor.core.publisher.Mono<Void> set(long newValue)
newValue
- the new valueCopyright © 2014–2020 Redisson. All rights reserved.