Package com.bytedesk.core.uid.impl
package com.bytedesk.core.uid.impl
-
ClassesClassDescriptionAllocate 64 bits for the UID(long)<br&gt; sign (fixed 1bit) -> deltaSecond -> workerId -> sequence(within the same second)Represents a cached implementation of
UidGeneratorService
extends fromDefaultUidGenerator
, based on a lock freeRingBuffer
<p> <p> The spring properties you can specified as below:<br> boostPower:</b> RingBuffer size boost for a power of 2, Sample: boostPower is 3, it means the buffer size will begetMaxSequence() + 1
paddingFactor:</b> Represents a percent value of (0 - 100).Represents an implementation ofUidGeneratorService
<p> The unique id has 64bits (long), default allocated as blow:<br> 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).UID 的配置