Package org.redisson.api
Interface RIdGeneratorReactive
- All Superinterfaces:
RExpirableReactive
,RObjectReactive
Id generator of
Long
type numbers.
Returns unique numbers but not monotonically increased.- Author:
- Nikita Koksharov
-
Method Summary
Methods inherited from interface org.redisson.api.RExpirableReactive
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLive
Methods inherited from interface org.redisson.api.RObjectReactive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
-
Method Details
-
tryInit
Initializes Id generator params.- Parameters:
value
- - initial valueallocationSize
- - values range allocation size- Returns:
true
if Id generator initializedfalse
if Id generator already initialized
-
nextId
reactor.core.publisher.Mono<Long> nextId()Returns next unique number but not monotonically increased- Returns:
- number
-