RExpirableAsync
, RObjectAsync
RAtomicDouble
RedissonAtomicDouble
public interface RAtomicDoubleAsync extends RExpirableAsync
Modifier and Type | Method | Description |
---|---|---|
RFuture<Double> |
addAndGetAsync(double delta) |
Atomically adds the given value to the current value.
|
RFuture<Boolean> |
compareAndSetAsync(double expect,
double update) |
Atomically sets the value to the given updated value
only if the current value
== the expected value. |
RFuture<Double> |
decrementAndGetAsync() |
Atomically decrements the current value by one.
|
RFuture<Double> |
getAndAddAsync(double delta) |
Atomically adds the given value to the current value.
|
RFuture<Double> |
getAndDecrementAsync() |
Atomically decrements by one the current value.
|
RFuture<Double> |
getAndDeleteAsync() |
Returns and deletes object
|
RFuture<Double> |
getAndIncrementAsync() |
Atomically increments the current value by one.
|
RFuture<Double> |
getAndSetAsync(double newValue) |
Atomically sets the given value and returns the old value.
|
RFuture<Double> |
getAsync() |
Returns current value.
|
RFuture<Double> |
incrementAndGetAsync() |
Atomically increments the current value by one.
|
RFuture<Void> |
setAsync(double newValue) |
Atomically sets the given value.
|
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, touchAsync, unlinkAsync
RFuture<Boolean> compareAndSetAsync(double expect, double update)
==
the expected value.expect
- the expected valueupdate
- the new valueRFuture<Double> addAndGetAsync(double delta)
delta
- the value to addRFuture<Double> decrementAndGetAsync()
RFuture<Double> getAndDeleteAsync()
RFuture<Double> getAndAddAsync(double delta)
delta
- the value to addRFuture<Double> getAndSetAsync(double newValue)
newValue
- the new valueRFuture<Double> incrementAndGetAsync()
RFuture<Double> getAndIncrementAsync()
RFuture<Double> getAndDecrementAsync()
Copyright © 2014–2018 The Redisson Project. All rights reserved.