Skip to content

Commit

Permalink
update java doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nxttl-ucas committed Oct 11, 2021
1 parent c0958e0 commit 48290cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,15 @@ public interface ICamelliaSegmentIdGen {

/**
* 获取一批id
* @param tag tag
* @param count 数量
* @return 一批id
*/
List<Long> genIds(String tag, int count);

/**
* 获取一个id
* @param tag tag
* @return id
*/
long genId(String tag);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* 雪花算法生成id,趋势递增
* 64位数字
* 1位(不用)+ 41位(时间戳)+ r位(单元id)+ w位(机器id)+ s位(序列号)
* 其中r+w+s<=22位
* 其中r+w+s小于等于22位
* Created by caojiajun on 2021/9/18
*/
public class CamelliaSnowflakeIdGen implements ICamelliaSnowflakeIdGen {
Expand Down

0 comments on commit 48290cd

Please sign in to comment.