| 程序包 | 说明 |
|---|---|
| cn.amorou.uid.boot | |
| cn.amorou.uid.impl |
| 限定符和类型 | 方法和说明 |
|---|---|
UidGenerator |
UidGeneratorAutoConfiguration.cachedUidGenerator(WorkerIdAssigner workerIdAssigner,
UidGeneratorProperties uidGeneratorProperties,
RejectedPutBufferHandler rejectedPutBufferHandler,
RejectedTakeBufferHandler rejectedTakeBufferHandler) |
UidGenerator |
UidGeneratorAutoConfiguration.defaultUidGenerator(WorkerIdAssigner workerIdAssigner,
UidGeneratorProperties uidGeneratorProperties) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
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). |
class |
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 © 2020. All rights reserved.