public interface RIdGeneratorReactive extends RExpirableReactive
Long type numbers.
Returns unique numbers but not monotonically increased.| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Long> |
nextId()
Returns next unique number but not monotonically increased
|
reactor.core.publisher.Mono<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, unlinkreactor.core.publisher.Mono<Boolean> tryInit(long value, long allocationSize)
value - - initial valueallocationSize - - values range allocation sizetrue if Id generator initialized
false if Id generator already initializedreactor.core.publisher.Mono<Long> nextId()
Copyright © 2014–2020 Redisson. All rights reserved.