yu.algorithm.snowflkeId

Undocumented in source.

Members

Aliases

SnowflkeID
alias SnowflkeID = SnowflkeBase!(4)

* Twitter's Snowflke ID generate algorithm.to generate only ID * * workerIdBits : 工作机器的ID所占的位数,支持不存在workID * seqBits : 计数器位数,默认: 10个位用来保存计数码 * twepoch : 开始的时间戳,ms。默认为 2017-3-1 0:0:0.0

Classes

SnowflkeBase
class SnowflkeBase(int workerIdBits, int sequenceBits = 10, long twepoch = 1488297600000L)
Undocumented in source.

Meta