Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baidu/uid-generator
/ types & classes
Types & classes
24 in github.com/baidu/uid-generator
⨍
Functions
121
◇
Types & classes
24
Class
BitsAllocator
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
Class
BufferPaddingExecutor
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
Interface
BufferedUidProvider
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
Class
CachedUidGenerator
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
Class
CachedUidGeneratorTest
Test for {@link CachedUidGenerator} @author yutianbao
src/test/java/com/baidu/fsg/uid/CachedUidGeneratorTest.java:25
Class
DateUtils
DateUtils provides date formatting, parsing @author yutianbao
src/main/java/com/baidu/fsg/uid/utils/DateUtils.java:29
Class
DefaultUidGenerator
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
Class
DefaultUidGeneratorTest
Test for {@link DefaultUidGenerator} @author yutianbao
src/test/java/com/baidu/fsg/uid/DefaultUidGeneratorTest.java:26
Class
DisposableWorkerIdAssigner
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
Class
DockerUtils
DockerUtils @author yutianbao
src/main/java/com/baidu/fsg/uid/utils/DockerUtils.java:27
Class
EnumUtils
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
Class
NamingThreadFactory
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
Class
NetUtils
NetUtils @author yutianbao
src/main/java/com/baidu/fsg/uid/utils/NetUtils.java:28
Class
PaddedAtomicLong
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
Interface
RejectedPutBufferHandler
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
Interface
RejectedTakeBufferHandler
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
Class
RingBuffer
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
Class
UidGenerateException
UidGenerateException @author yutianbao
src/main/java/com/baidu/fsg/uid/exception/UidGenerateException.java:23
Interface
UidGenerator
Represents a unique id generator. @author yutianbao
src/main/java/com/baidu/fsg/uid/UidGenerator.java:25
Interface
ValuedEnum
{@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
Interface
WorkerIdAssigner
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
Interface
WorkerNodeDAO
DAO for M_WORKER_NODE @author yutianbao
src/main/java/com/baidu/fsg/uid/worker/dao/WorkerNodeDAO.java:27
Class
WorkerNodeEntity
Entity for M_WORKER_NODE @author yutianbao
src/main/java/com/baidu/fsg/uid/worker/entity/WorkerNodeEntity.java:30
Enum
WorkerNodeType
WorkerNodeType <li>CONTAINER: Such as Docker <li>ACTUAL: Actual machine @author yutianbao
src/main/java/com/baidu/fsg/uid/worker/WorkerNodeType.java:27