Class TtsIdGenerator
java.lang.Object
uno.xifan.id.generator.distributed.ttsid.TtsIdGenerator
- All Implemented Interfaces:
IdGenerator
TtsId生成器实现
生成的ID结构:41位时间戳 + 10位线程ID + 12位序列号
-
Constructor Summary
ConstructorsConstructorDescriptionTtsIdGenerator(org.redisson.api.RedissonClient redisson, TtsIdGeneratorConfig config) 构造函数 -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uno.xifan.id.base.IdGenerator
generate
-
Constructor Details
-
TtsIdGenerator
构造函数- Parameters:
redisson- Redis客户端,用于获取全局唯一的线程ID
-
-
Method Details
-
generate
- Specified by:
generatein interfaceIdGenerator
-
idType
- Specified by:
idTypein interfaceIdGenerator
-