| 程序包 | 说明 |
|---|---|
| com.littlenb.snowflake.support |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ElasticIdGeneratorFactory
+------+----------------------+----------------+-----------+
| sign | delta millisecond | worker node id | sequence |
+------+----------------------+----------------+-----------+
1bit timeBits workerBits seqBits
Note that: The total bits must be 64 -1 |
class |
MillisIdGeneratorFactory
The unique id has 64bits (long), default allocated as blow:
sign: The highest bit is 0
delta millisecond: The next 28 bits, represents delta seconds since a
customer epoch(2017-01-01 00:00:00.000).
|
class |
SecondsIdGeneratorFactory
The unique id has 64bits (long), default allocated as blow:
sign: The highest bit is 0 delta seconds: The next 28 bits, represents delta seconds since a customer epoch(2017-01-01 00:00:00.000). |
Copyright © 2020. All rights reserved.