public interface RDoubleAdder extends RExpirable, RDestroyable
DoubleAdder
Internal state maintained on client side.
Modifier and Type | Method and Description |
---|---|
void |
add(double x)
Adds value
|
void |
decrement()
Decrements value
|
void |
increment()
Increments value
|
void |
reset()
Resets value across all RDoubleAdder instances
|
RFuture<Void> |
resetAsync()
Resets value across all RDoubleAdder instances
|
RFuture<Void> |
resetAsync(long timeout,
TimeUnit timeUnit)
Resets value across all RDoubleAdder instances
within defined
timeout . |
double |
sum()
Accumulates sum across all RDoubleAdder instances
|
RFuture<Double> |
sumAsync()
Accumulates sum across all RDoubleAdder instances
|
RFuture<Double> |
sumAsync(long timeout,
TimeUnit timeUnit)
Accumulates sum across all RDoubleAdder instances
within defined
timeout . |
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
destroy
void add(double x)
x
- - valuevoid increment()
void decrement()
double sum()
void reset()
RFuture<Double> sumAsync()
RFuture<Double> sumAsync(long timeout, TimeUnit timeUnit)
timeout
.timeout
- for accumulationtimeUnit
- for timeoutCopyright © 2014–2020 Redisson. All rights reserved.