Package org.redisson.api
Interface RIdGeneratorAsync
- All Superinterfaces:
RExpirableAsync,RObjectAsync
- All Known Subinterfaces:
RIdGenerator
- All Known Implementing Classes:
RedissonIdGenerator
Id generator of
Long type numbers.
Returns unique numbers but not monotonically increased.- Author:
- Nikita Koksharov
-
Method Summary
Modifier and TypeMethodDescriptionReturns next unique number but not monotonically increasedtryInitAsync(long value, long allocationSize) Initializes Id generator params.Methods inherited from interface org.redisson.api.RExpirableAsync
clearExpireAsync, expireAsync, expireAsync, expireAsync, expireAtAsync, expireAtAsync, expireIfGreaterAsync, expireIfGreaterAsync, expireIfLessAsync, expireIfLessAsync, expireIfNotSetAsync, expireIfNotSetAsync, expireIfSetAsync, expireIfSetAsync, getExpireTimeAsync, remainTimeToLiveAsyncMethods inherited from interface org.redisson.api.RObjectAsync
addListenerAsync, copyAndReplaceAsync, copyAndReplaceAsync, copyAsync, copyAsync, copyAsync, deleteAsync, dumpAsync, getIdleTimeAsync, isExistsAsync, migrateAsync, moveAsync, removeListenerAsync, renameAsync, renamenxAsync, restoreAndReplaceAsync, restoreAndReplaceAsync, restoreAsync, restoreAsync, sizeInMemoryAsync, touchAsync, unlinkAsync
-
Method Details
-
tryInitAsync
Initializes Id generator params.- Parameters:
value- - initial valueallocationSize- - values range allocation size- Returns:
trueif Id generator initializedfalseif Id generator already initialized
-
nextIdAsync
Returns next unique number but not monotonically increased- Returns:
- number
-