提交 d6d54042 编写于 作者: T terrymanu

fix javadoc

上级 031dca8c
......@@ -32,7 +32,7 @@ import java.util.Date;
/**
* 自生成Id生成器.
*
* <p/>
* <p>
* 长度为64bit,从高位到低位依次为
* <pre>
* 1bit 符号位
......@@ -40,10 +40,12 @@ import java.util.Date;
* 10bits 工作进程Id
* 12bits 同一个毫秒内的自增量
* </pre>
* </p>
*
* <p/>
* <p>
* 工作进程Id获取优先级: 系统变量{@code sjdbc.self.id.generator.worker.id} > 环境变量{@code SJDBC_SELF_ID_GENERATOR_WORKER_ID}
* ,另外可以调用@{@code CommonSelfIdGenerator.setWorkerId}进行设置
* </p>
*
* @author gaohongtao
*/
......@@ -102,7 +104,7 @@ public class CommonSelfIdGenerator implements IdGenerator {
/**
* 设置工作进程Id.
*
* @param workerId
* @param workerId 工作进程Id
*/
public static void setWorkerId(final Long workerId) {
Preconditions.checkArgument(workerId >= 0L && workerId < WORKER_ID_MAX_VALUE);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册