1
0
mirror of synced 2026-02-19 11:27:56 +08:00

auto commit

This commit is contained in:
yitter
2021-04-06 11:10:37 +08:00
parent 5826b6aa1c
commit 89c6bceea4

View File

@@ -154,7 +154,7 @@ QQ群646049993
<font color="#11aaff" size="5">❄</font> <font color=blue>**WorkerId**</font>,机器码,无默认值,必须由外部设定,最大值 2^WorkerIdBitLength-1实际上根据语言的实现不同可能会限定在 65535 或 32766原理同 WorkerIdBitLength 的规则)。不同机器或不同应用不能相同,本算法提供一个通过 redis 自动注册 WorkerId 的动态库详见“Tools\AutoRegisterWorkerId”。
<font color="#11aaff" size="5">❄</font> <font color=blue>**MinSeqNumber**</font>最小序列数默认值5取值范围 [5, MaxSeqNumber]每毫秒的前5个序列数对应编号0-4是保留位其中1-4是时间回拨相应预留位0是手工新值预留位。
<font color="#11aaff" size="5">❄</font> <font color=blue>***MinSeqNumber***</font>最小序列数默认值5取值范围 [5, MaxSeqNumber]每毫秒的前5个序列数对应编号0-4是保留位其中1-4是时间回拨相应预留位0是手工新值预留位。
<font color="#11aaff" size="5">❄</font> <font color=blue>**MaxSeqNumber**</font>,最大序列数,设置范围 [MinSeqNumber, 2^SeqBitLength-1]默认值0表示最大序列数取最大值2^SeqBitLength-1]不为0时用该设置值为最大序列数一般不用设置最大序列数除非多机共享WorkerId分段生成ID此时还要正确设置最小序列数