Class TtsIdGenerator
java.lang.Object
icu.congee.id.generator.distributed.ttsid.TtsIdGenerator
- All Implemented Interfaces:
IdGenerator
TtsId生成器实现
生成的ID结构:41位时间戳 + 10位线程ID + 12位序列号
-
Constructor Details
-
TtsIdGenerator
public TtsIdGenerator(org.redisson.api.RedissonClient redisson) 构造函数- Parameters:
redisson- Redis客户端,用于获取全局唯一的线程ID
-
-
Method Details
-
generate
- Specified by:
generatein interfaceIdGenerator
-
idType
- Specified by:
idTypein interfaceIdGenerator
-