diff --git a/C#.NET/source/Yitter.IdGenerator/Core/SnowWorkerM1.cs b/C#.NET/source/Yitter.IdGenerator/Core/SnowWorkerM1.cs index dc91a05..f814551 100644 --- a/C#.NET/source/Yitter.IdGenerator/Core/SnowWorkerM1.cs +++ b/C#.NET/source/Yitter.IdGenerator/Core/SnowWorkerM1.cs @@ -49,7 +49,7 @@ namespace Yitter.IdGenerator protected readonly ushort MinSeqNumber = 0; /// - /// 最大漂移次数 + /// 最大漂移次数(含) /// protected readonly int TopOverCostCount = 0; diff --git a/Java/source/src/main/java/com/github/yitter/core/SnowWorkerM1.java b/Java/source/src/main/java/com/github/yitter/core/SnowWorkerM1.java index 6246b96..47554bc 100644 --- a/Java/source/src/main/java/com/github/yitter/core/SnowWorkerM1.java +++ b/Java/source/src/main/java/com/github/yitter/core/SnowWorkerM1.java @@ -42,7 +42,7 @@ public class SnowWorkerM1 implements ISnowWorker { protected final short MinSeqNumber; /** - * 最大漂移次数 + * 最大漂移次数(含) */ protected final int TopOverCostCount; @@ -143,7 +143,7 @@ public class SnowWorkerM1 implements ISnowWorker { _TurnBackIndex++; // 每毫秒序列数的前5位是预留位,0用于手工新值,1-4是时间回拨次序 - // 最多4次回拨(防止回拨重叠) + // 支持4次回拨次序(避免回拨重叠导致ID重复),可无限次回拨(次序循环使用)。 if (_TurnBackIndex > 4) { _TurnBackIndex = 1; }