Package org.redisson.api
Interface RIdGeneratorRx
- All Superinterfaces:
RExpirableRx
,RObjectRx
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.RExpirableRx
clearExpire, expire, expire, expire, expireAt, expireAt, expireIfGreater, expireIfGreater, expireIfLess, expireIfLess, expireIfNotSet, expireIfNotSet, expireIfSet, expireIfSet, getExpireTime, remainTimeToLive
Methods inherited from interface org.redisson.api.RObjectRx
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
io.reactivex.rxjava3.core.Single<Long> nextId()Returns next unique number but not monotonically increased- Returns:
- number
-