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, remainTimeToLiveaddListener, copy, delete, dump, getCodec, getIdleTime, getName, isExists, migrate, move, removeListener, rename, renamenx, restore, restore, restoreAndReplace, restoreAndReplace, sizeInMemory, touch, unlinknextIdAsync, tryInitAsyncclearExpireAsync, expireAsync, expireAtAsync, expireAtAsync, remainTimeToLiveAsyncaddListenerAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsyncboolean 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.