MCPcopy Create free account

hub / github.com/baidu/uid-generator / types & classes

Types & classes24 in github.com/baidu/uid-generator

ClassBitsAllocator
Allocate 64 bits for the UID(long)<br> sign (fixed 1bit) -> deltaSecond -> workerId -> sequence(within the same second) @author yutianbao
src/main/java/com/baidu/fsg/uid/BitsAllocator.java:28
ClassBufferPaddingExecutor
Represents an executor for padding {@link RingBuffer}<br> There are two kinds of executors: one for scheduled padding, the other for padding immediate
src/main/java/com/baidu/fsg/uid/buffer/BufferPaddingExecutor.java:38
InterfaceBufferedUidProvider
Buffered UID provider(Lambda supported), which provides UID in the same one second @author yutianbao
src/main/java/com/baidu/fsg/uid/buffer/BufferedUidProvider.java:25
ClassCachedUidGenerator
Represents a cached implementation of {@link UidGenerator} extends from {@link DefaultUidGenerator}, based on a lock free {@link RingBuffer}<p> The s
src/main/java/com/baidu/fsg/uid/impl/CachedUidGenerator.java:51
ClassCachedUidGeneratorTest
Test for {@link CachedUidGenerator} @author yutianbao
src/test/java/com/baidu/fsg/uid/CachedUidGeneratorTest.java:25
ClassDateUtils
DateUtils provides date formatting, parsing @author yutianbao
src/main/java/com/baidu/fsg/uid/utils/DateUtils.java:29
ClassDefaultUidGenerator
Represents an implementation of {@link UidGenerator} The unique id has 64bits (long), default allocated as blow:<br> <li>sign: The highest bit is 0 <
src/main/java/com/baidu/fsg/uid/impl/DefaultUidGenerator.java:61
ClassDefaultUidGeneratorTest
Test for {@link DefaultUidGenerator} @author yutianbao
src/test/java/com/baidu/fsg/uid/DefaultUidGeneratorTest.java:26
ClassDisposableWorkerIdAssigner
Represents an implementation of {@link WorkerIdAssigner}, the worker id will be discarded after assigned to the UidGenerator @author yutianbao
src/main/java/com/baidu/fsg/uid/worker/DisposableWorkerIdAssigner.java:35
ClassDockerUtils
DockerUtils @author yutianbao
src/main/java/com/baidu/fsg/uid/utils/DockerUtils.java:27
ClassEnumUtils
EnumUtils provides the operations for {@link ValuedEnum} such as Parse, value of... @author yutianbao
src/main/java/com/baidu/fsg/uid/utils/EnumUtils.java:25
ClassNamingThreadFactory
Named thread in ThreadFactory. If there is no specified name for thread, it will auto detect using the invoker classname instead. @author yutianbao
src/main/java/com/baidu/fsg/uid/utils/NamingThreadFactory.java:34
ClassNetUtils
NetUtils @author yutianbao
src/main/java/com/baidu/fsg/uid/utils/NetUtils.java:28
ClassPaddedAtomicLong
Represents a padded {@link AtomicLong} to prevent the FalseSharing problem<p> The CPU cache line commonly be 64 bytes, here is a sample of cache line
src/main/java/com/baidu/fsg/uid/utils/PaddedAtomicLong.java:28
InterfaceRejectedPutBufferHandler
If tail catches the cursor it means that the ring buffer is full, any more buffer put request will be rejected. Specify the policy to handle the rejec
src/main/java/com/baidu/fsg/uid/buffer/RejectedPutBufferHandler.java:24
InterfaceRejectedTakeBufferHandler
If cursor catches the tail it means that the ring buffer is empty, any more buffer take request will be rejected. Specify the policy to handle the rej
src/main/java/com/baidu/fsg/uid/buffer/RejectedTakeBufferHandler.java:24
ClassRingBuffer
Represents a ring buffer based on array.<br> Using array could improve read element performance due to the CUP cache line. To prevent the side effect
src/main/java/com/baidu/fsg/uid/buffer/RingBuffer.java:39
ClassUidGenerateException
UidGenerateException @author yutianbao
src/main/java/com/baidu/fsg/uid/exception/UidGenerateException.java:23
InterfaceUidGenerator
Represents a unique id generator. @author yutianbao
src/main/java/com/baidu/fsg/uid/UidGenerator.java:25
InterfaceValuedEnum
{@code ValuedEnum} defines an enumeration which is bounded to a value, you may implements this interface when you defines such kind of enumeration, th
src/main/java/com/baidu/fsg/uid/utils/ValuedEnum.java:25
InterfaceWorkerIdAssigner
Represents a worker id assigner for {@link com.baidu.fsg.uid.impl.DefaultUidGenerator} @author yutianbao
src/main/java/com/baidu/fsg/uid/worker/WorkerIdAssigner.java:23
InterfaceWorkerNodeDAO
DAO for M_WORKER_NODE @author yutianbao
src/main/java/com/baidu/fsg/uid/worker/dao/WorkerNodeDAO.java:27
ClassWorkerNodeEntity
Entity for M_WORKER_NODE @author yutianbao
src/main/java/com/baidu/fsg/uid/worker/entity/WorkerNodeEntity.java:30
EnumWorkerNodeType
WorkerNodeType <li>CONTAINER: Such as Docker <li>ACTUAL: Actual machine @author yutianbao
src/main/java/com/baidu/fsg/uid/worker/WorkerNodeType.java:27