new Snowflake(workerId, dataCenterId, sequence)
- Source:
Parameters:
Name | Type | Description |
---|---|---|
workerId |
BigInt | 工作站id |
dataCenterId |
BigInt | 数据中心 |
sequence |
BigInt |
Methods
nextId() → {bigint}
- Source:
获取下一个
Returns:
- Type
- bigint