A B C D G I M N O S T W Y _ 
所有类 所有程序包

A

ActionType - 类 中的变量com.github.yitter.contract.OverCostActionArg
事件类型 1-开始,2-结束,8-漂移

B

BaseTime - 类 中的变量com.github.yitter.contract.IdGeneratorOptions
基础时间(ms单位) 不能超过当前系统时间
BaseTime - 类 中的变量com.github.yitter.core.SnowWorkerM1
基础时间

C

com.github.yitter.contract - 程序包 com.github.yitter.contract
 
com.github.yitter.core - 程序包 com.github.yitter.core
 
com.github.yitter.idgen - 程序包 com.github.yitter.idgen
 
com.github.yitter.test - 程序包 com.github.yitter.test
 

D

DefaultIdGenerator - com.github.yitter.idgen中的类
 
DefaultIdGenerator(IdGeneratorOptions) - 类 的构造器com.github.yitter.idgen.DefaultIdGenerator
 

G

GenCountInOneTerm - 类 中的变量com.github.yitter.contract.OverCostActionArg
漂移期间生产ID个数
GenStart() - 类 中的方法com.github.yitter.test.GenTest
 
GenTest - com.github.yitter.test中的类
 
GenTest(IIdGenerator, int, int) - 类 的构造器com.github.yitter.test.GenTest
 
GetCurrentTimeTick() - 类 中的方法com.github.yitter.core.SnowWorkerM1
 
getIdGenInstance() - 类 中的静态方法com.github.yitter.idgen.YitIdHelper
 
GetNextTimeTick() - 类 中的方法com.github.yitter.core.SnowWorkerM1
 

I

IdGeneratorException - com.github.yitter.contract中的异常错误
 
IdGeneratorException() - 异常错误 的构造器com.github.yitter.contract.IdGeneratorException
 
IdGeneratorException(String) - 异常错误 的构造器com.github.yitter.contract.IdGeneratorException
 
IdGeneratorException(String, Object...) - 异常错误 的构造器com.github.yitter.contract.IdGeneratorException
 
IdGeneratorException(String, Throwable) - 异常错误 的构造器com.github.yitter.contract.IdGeneratorException
 
IdGeneratorException(Throwable) - 异常错误 的构造器com.github.yitter.contract.IdGeneratorException
 
IdGeneratorOptions - com.github.yitter.contract中的类
雪花算法使用的参数 参数说明,参考 README.md 的 “配置参数” 章节。
IdGeneratorOptions() - 类 的构造器com.github.yitter.contract.IdGeneratorOptions
 
IdGeneratorOptions(short) - 类 的构造器com.github.yitter.contract.IdGeneratorOptions
 
IIdGenerator - com.github.yitter.contract中的接口
 
ISnowWorker - com.github.yitter.contract中的接口
 

M

main(String[]) - 类 中的静态方法com.github.yitter.test.StartUp
 
MaxSeqNumber - 类 中的变量com.github.yitter.contract.IdGeneratorOptions
最大序列数(含) 设置范围 [MinSeqNumber, 2^SeqBitLength-1],默认值0,表示最大序列数取最大值(2^SeqBitLength-1])
MaxSeqNumber - 类 中的变量com.github.yitter.core.SnowWorkerM1
最大序列数(含)
Method - 类 中的变量com.github.yitter.contract.IdGeneratorOptions
雪花计算方法 (1-漂移算法|2-传统算法),默认1
MinSeqNumber - 类 中的变量com.github.yitter.contract.IdGeneratorOptions
最小序列数(含) 默认值5,取值范围 [5, MaxSeqNumber],每毫秒的前5个序列数对应编号是0-4是保留位,其中1-4是时间回拨相应预留位,0是手工新值预留位
MinSeqNumber - 类 中的变量com.github.yitter.core.SnowWorkerM1
最小序列数(含)

N

newLong() - 接口 中的方法com.github.yitter.contract.IIdGenerator
 
newLong() - 类 中的方法com.github.yitter.idgen.DefaultIdGenerator
 
nextId() - 接口 中的方法com.github.yitter.contract.ISnowWorker
 
nextId() - 类 中的方法com.github.yitter.core.SnowWorkerM1
 
nextId() - 类 中的方法com.github.yitter.core.SnowWorkerM2
 
nextId() - 类 中的静态方法com.github.yitter.idgen.YitIdHelper
生成新的Id 调用本方法前,请确保调用了 SetIdGenerator 方法做初始化。

O

OverCostActionArg - com.github.yitter.contract中的类
Id生成时回调参数
OverCostActionArg(short, long, int, int, int, int) - 类 的构造器com.github.yitter.contract.OverCostActionArg
 
OverCostCountInOneTerm - 类 中的变量com.github.yitter.contract.OverCostActionArg
 

S

SeqBitLength - 类 中的变量com.github.yitter.contract.IdGeneratorOptions
序列数位长 默认值6,取值范围 [3, 21](要求:序列数位长+机器码位长不超过22)
SeqBitLength - 类 中的变量com.github.yitter.core.SnowWorkerM1
自增序列数位长
setIdGenerator(IdGeneratorOptions) - 类 中的静态方法com.github.yitter.idgen.YitIdHelper
设置参数,建议程序初始化时执行一次
SnowWorkerM1 - com.github.yitter.core中的类
 
SnowWorkerM1(IdGeneratorOptions) - 类 的构造器com.github.yitter.core.SnowWorkerM1
 
SnowWorkerM2 - com.github.yitter.core中的类
 
SnowWorkerM2(IdGeneratorOptions) - 类 的构造器com.github.yitter.core.SnowWorkerM2
 
StartUp - com.github.yitter.test中的类
 
StartUp() - 类 的构造器com.github.yitter.test.StartUp
 

T

TermIndex - 类 中的变量com.github.yitter.contract.OverCostActionArg
漂移周期
TimeTick - 类 中的变量com.github.yitter.contract.OverCostActionArg
时间戳
TopOverCostCount - 类 中的变量com.github.yitter.contract.IdGeneratorOptions
最大漂移次数(含) 默认2000,推荐范围500-10000(与计算能力有关)
TopOverCostCount - 类 中的变量com.github.yitter.core.SnowWorkerM1
最大漂移次数

W

WorkerId - 类 中的变量com.github.yitter.contract.IdGeneratorOptions
机器码 必须由外部设定,最大值 2^WorkerIdBitLength-1
WorkerId - 类 中的变量com.github.yitter.contract.OverCostActionArg
机器码
WorkerId - 类 中的变量com.github.yitter.core.SnowWorkerM1
机器码
WorkerIdBitLength - 类 中的变量com.github.yitter.contract.IdGeneratorOptions
机器码位长 默认值6,取值范围 [1, 15](要求:序列数位长+机器码位长不超过22)
WorkerIdBitLength - 类 中的变量com.github.yitter.core.SnowWorkerM1
机器码位长

Y

YitIdHelper - com.github.yitter.idgen中的类
这是一个调用的例子,默认情况下,单机集成者可以直接使用 nextId()。
YitIdHelper() - 类 的构造器com.github.yitter.idgen.YitIdHelper
 

_

_CurrentSeqNumber - 类 中的变量com.github.yitter.core.SnowWorkerM1
 
_GenCountInOneTerm - 类 中的变量com.github.yitter.core.SnowWorkerM1
 
_IsOverCost - 类 中的变量com.github.yitter.core.SnowWorkerM1
 
_LastTimeTick - 类 中的变量com.github.yitter.core.SnowWorkerM1
 
_OverCostCountInOneTerm - 类 中的变量com.github.yitter.core.SnowWorkerM1
 
_SyncLock - 类 中的静态变量com.github.yitter.core.SnowWorkerM1
 
_TermIndex - 类 中的变量com.github.yitter.core.SnowWorkerM1
 
_TimestampShift - 类 中的变量com.github.yitter.core.SnowWorkerM1
 
_TurnBackIndex - 类 中的变量com.github.yitter.core.SnowWorkerM1
 
_TurnBackTimeTick - 类 中的变量com.github.yitter.core.SnowWorkerM1
 
A B C D G I M N O S T W Y _ 
所有类 所有程序包