Uses of Class
cloud.opencode.base.id.snowflake.SnowflakeBuilder
Packages that use SnowflakeBuilder
-
Uses of SnowflakeBuilder in cloud.opencode.base.id
Methods in cloud.opencode.base.id that return SnowflakeBuilderModifier and TypeMethodDescriptionstatic SnowflakeBuilderOpenId.snowflakeBuilder()Creates a Snowflake builder for customized configuration 创建用于自定义配置的雪花ID构建器 -
Uses of SnowflakeBuilder in cloud.opencode.base.id.snowflake
Methods in cloud.opencode.base.id.snowflake that return SnowflakeBuilderModifier and TypeMethodDescriptionstatic SnowflakeBuilderSnowflakeGenerator.builder()Creates a builder for customized generator 创建用于自定义生成器的构建器SnowflakeBuilder.clockBackwardStrategy(ClockBackwardStrategy strategy) Sets the clock backward strategy 设置时钟回拨策略SnowflakeBuilder.datacenterBits(int bits) Sets the datacenter ID bits 设置数据中心ID位数SnowflakeBuilder.datacenterId(long datacenterId) Sets the datacenter ID 设置数据中心IDSets the epoch from Instant 使用Instant设置起始时间SnowflakeBuilder.epochMillis(long epochMillis) Sets the epoch in milliseconds 使用毫秒设置起始时间SnowflakeBuilder.sequenceBits(int bits) Sets the sequence bits 设置序列号位数SnowflakeBuilder.timestampBits(int bits) Sets the timestamp bits 设置时间戳位数SnowflakeBuilder.workerBits(int bits) Sets the worker ID bits 设置工作节点ID位数SnowflakeBuilder.workerId(long workerId) Sets the worker ID 设置工作节点IDSnowflakeBuilder.workerIdAssigner(WorkerIdAssigner assigner) Sets the worker ID assigner for automatic ID assignment 设置工作节点ID分配器以自动分配ID