| 接口 | 说明 |
|---|---|
| IdSequenceFactory |
| 类 | 说明 |
|---|---|
| ElasticIdSequenceFactory |
+------+----------------------+----------------+-----------+
| sign | delta millisecond | worker node id | sequence |
+------+----------------------+----------------+-----------+
1bit timeBits workerBits seqBits
Note that: The total bits must be 64 -1 |
| MillisIdSequenceFactory |
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). |
| SecondsIdSequenceFactory |
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 © 2018. All rights reserved.