Package org.redisson.api
Interface RAtomicDoubleAsync
- 
- All Superinterfaces:
 RExpirableAsync,RObjectAsync
- All Known Subinterfaces:
 RAtomicDouble
- All Known Implementing Classes:
 RedissonAtomicDouble
public interface RAtomicDoubleAsync extends RExpirableAsync
Distributed implementation to the AtomicDouble- Author:
 - Nikita Koksharov
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods 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 objectRFuture<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.- 
Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync 
- 
Methods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync 
 - 
 
 - 
 
- 
- 
Method Detail
- 
compareAndSetAsync
RFuture<Boolean> compareAndSetAsync(double expect, double update)
Atomically sets the value to the given updated value only if the current value==the expected value.- Parameters:
 expect- the expected valueupdate- the new value- Returns:
 - true if successful; or false if the actual value was not equal to the expected value.
 
 
- 
addAndGetAsync
RFuture<Double> addAndGetAsync(double delta)
Atomically adds the given value to the current value.- Parameters:
 delta- the value to add- Returns:
 - the updated value
 
 
- 
decrementAndGetAsync
RFuture<Double> decrementAndGetAsync()
Atomically decrements the current value by one.- Returns:
 - the updated value
 
 
- 
getAndDeleteAsync
RFuture<Double> getAndDeleteAsync()
Returns and deletes object- Returns:
 - the current value
 
 
- 
getAndAddAsync
RFuture<Double> getAndAddAsync(double delta)
Atomically adds the given value to the current value.- Parameters:
 delta- the value to add- Returns:
 - the updated value
 
 
- 
getAndSetAsync
RFuture<Double> getAndSetAsync(double newValue)
Atomically sets the given value and returns the old value.- Parameters:
 newValue- the new value- Returns:
 - the old value
 
 
- 
incrementAndGetAsync
RFuture<Double> incrementAndGetAsync()
Atomically increments the current value by one.- Returns:
 - the updated value
 
 
- 
getAndIncrementAsync
RFuture<Double> getAndIncrementAsync()
Atomically increments the current value by one.- Returns:
 - the old value
 
 
- 
getAndDecrementAsync
RFuture<Double> getAndDecrementAsync()
Atomically decrements by one the current value.- Returns:
 - the previous value
 
 
 - 
 
 -