| Modifier and Type | Method and Description |
|---|---|
static IdWorker |
getSnowflakeIdGenerator(long workerId)
获取雪花ID生成器
|
static UUID |
newUuid()
生成 UUID
|
static long |
nextSnowflakeId(long workerId)
生成雪花ID
|
static String |
simpleUuidString()
生成 UUID 字符串(无分隔符)
|
static String |
toSimpleString(UUID uuid)
生成 UUID 字符串(无分隔符)
|
static String |
uuidString()
生成 UUID 字符串
|
public static UUID newUuid()
public static String uuidString()
public static String simpleUuidString()
public static String toSimpleString(UUID uuid)
uuid - UUIDpublic static long nextSnowflakeId(long workerId)
workerId - 工作机器IDpublic static IdWorker getSnowflakeIdGenerator(long workerId)
workerId - 工作机器IDIdWorker 对象。来自 Seata 的修改版雪花ID生成器。Copyright © 2026. All rights reserved.