RDestroyable
, RExpirable
, RExpirableAsync
, RObject
, RObjectAsync
RedissonLongAdder
public interface RLongAdder extends RExpirable, RDestroyable
LongAdder
Internal state maintained on client side.
Modifier and Type | Method | Description |
---|---|---|
void |
add(long x) |
Adds value
|
void |
decrement() |
Decrements value
|
void |
increment() |
Increments value
|
void |
reset() |
Resets value across all RLongAdder instances
|
RFuture<Void> |
resetAsync() |
Resets value across all RLongAdder instances
|
RFuture<Void> |
resetAsync(long timeout,
TimeUnit timeUnit) |
Resets value across all RLongAdder instances
within defined
timeout . |
long |
sum() |
Accumulates sum across all RLongAdder instances
|
RFuture<Long> |
sumAsync() |
Accumulates sum across all RLongAdder instances
|
RFuture<Long> |
sumAsync(long timeout,
TimeUnit timeUnit) |
Accumulates sum across all RLongAdder instances
within defined
timeout . |
destroy
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
void add(long x)
x
- - valuevoid increment()
void decrement()
long sum()
void reset()
RFuture<Long> sumAsync()
RFuture<Long> sumAsync(long timeout, TimeUnit timeUnit)
timeout
.timeout
- for accumulationtimeUnit
- for timeoutCopyright © 2014–2018 The Redisson Project. All rights reserved.