public interface RIdGeneratorRx extends RExpirableRx
Long type numbers.
Returns unique numbers but not monotonically increased.| Modifier and Type | Method and Description |
|---|---|
io.reactivex.rxjava3.core.Single<Long> |
nextId()
Returns next unique number but not monotonically increased
|
io.reactivex.rxjava3.core.Single<Boolean> |
tryInit(long value,
long allocationSize)
Initializes Id generator params.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinkio.reactivex.rxjava3.core.Single<Boolean> tryInit(long value, long allocationSize)
value - - initial valueallocationSize - - values range allocation sizetrue if Id generator initialized
false if Id generator already initializedio.reactivex.rxjava3.core.Single<Long> nextId()
Copyright © 2014–2020 Redisson. All rights reserved.