public interface RIdGenerator extends RExpirable, RIdGeneratorAsync
Long
type numbers.
Returns unique numbers but not monotonically increased.Modifier and Type | Method and Description |
---|---|
long |
nextId()
Returns next unique number but not monotonically increased
|
boolean |
tryInit(long value,
long allocationSize)
Initializes Id generator params.
|
clearExpire, expire, expireAt, expireAt, remainTimeToLive
addListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlink
nextIdAsync, tryInitAsync
clearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsync
addListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
boolean tryInit(long value, long allocationSize)
value
- - initial valueallocationSize
- - values range allocation sizetrue
if Id generator initialized
false
if Id generator already initializedlong nextId()
Copyright © 2014–2020 Redisson. All rights reserved.