| 程序包 | 说明 |
|---|---|
| cc.siyecao.uid | |
| cc.siyecao.uid.impl |
| 类和说明 |
|---|
| CachedUidGenerator
Represents a cached implementation of
UidGenerator extends
from DefaultUidGenerator, 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). |
| 类和说明 |
|---|
| DefaultUidGenerator
Represents an implementation of
UidGenerator
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). |
Copyright © 2022. All rights reserved.