类 | 说明 |
---|---|
CachedUIdWorker |
Represents a cached implementation of
UIdWorker extends
from DefaultUIdWorker , based on a lock free RingBuffer
The spring properties you can specified as below:boostPower: RingBuffer size boost for a power of 2, Sample: boostPower is 3, it means the buffer size will be ( , Default as
paddingFactor: Represents a percent value of (0 - 100). |
DefaultUIdWorker |
Represents an implementation of
UIdWorker
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(2016-05-20 00:00:00.000). |