RAtomicDoubleAsync
, RExpirable
, RExpirableAsync
, RObject
, RObjectAsync
RedissonAtomicDouble
public interface RAtomicDouble extends RExpirable, RAtomicDoubleAsync
Modifier and Type | Method | Description |
---|---|---|
double |
addAndGet(double delta) |
Atomically adds the given value to the current value.
|
boolean |
compareAndSet(double expect,
double update) |
Atomically sets the value to the given updated value
only if the current value
== the expected value. |
double |
decrementAndGet() |
Atomically decrements the current value by one.
|
double |
get() |
Gets the current value.
|
double |
getAndAdd(double delta) |
Atomically adds the given value to the current value.
|
double |
getAndDecrement() |
Atomically decrements by one the current value.
|
double |
getAndDelete() |
Gets and deletes object
|
double |
getAndIncrement() |
Atomically increments the current value by one.
|
double |
getAndSet(double newValue) |
Atomically sets the given value and returns the old value.
|
double |
incrementAndGet() |
Atomically increments the current value by one.
|
void |
set(double newValue) |
Atomically sets the given value.
|
addAndGetAsync, compareAndSetAsync, decrementAndGetAsync, getAndAddAsync, getAndDecrementAsync, getAndDeleteAsync, getAndIncrementAsync, getAndSetAsync, getAsync, incrementAndGetAsync, setAsync
clearExpire, expire, expireAt, expireAt, remainTimeToLive
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
copy, delete, dump, getCodec, getName, isExists, migrate, move, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, touch, unlink
copyAsync, deleteAsync, dumpAsync, isExistsAsync, migrateAsync, moveAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, touchAsync, unlinkAsync
double getAndDecrement()
double addAndGet(double delta)
delta
- the value to addboolean compareAndSet(double expect, double update)
==
the expected value.expect
- the expected valueupdate
- the new valuedouble decrementAndGet()
double get()
double getAndDelete()
double getAndAdd(double delta)
delta
- the value to adddouble getAndSet(double newValue)
newValue
- the new valuedouble incrementAndGet()
double getAndIncrement()
void set(double newValue)
newValue
- the new valueCopyright © 2014–2018 The Redisson Project. All rights reserved.