public class SnowFlakeIdWorker extends Object implements IdGenerator<Long>
| Constructor and Description |
|---|
SnowFlakeIdWorker(long workerId,
long dataCenterId) |
public SnowFlakeIdWorker(long workerId,
long dataCenterId)
workerId - 工作ID (0~31)dataCenterId - 数据中心ID (0~31)public Long nextId()
IdGeneratornextId in interface IdGenerator<Long>Copyright © 2025. All rights reserved.