A B C E G I M N P S T W 

A

allocate(long, long, long) - 类 中的方法com.twitter.snowflake.sequence.BitsAllocator
Allocate bits for ID according to delta timestamp & workerId & sequence
Note that: The highest bit will always be 0 for sign
assignWorkerId() - 类 中的方法com.twitter.snowflake.worker.SimpleWorkerIdAssigner
 
assignWorkerId() - 接口 中的方法com.twitter.snowflake.worker.WorkerIdAssigner
Assign worker id for IdSequence

B

BitsAllocator - com.twitter.snowflake.sequence中的类
Allocate 64 bits for the Unique ID(long)
sign (fixed 1bit) -> timestamp -> workerId -> sequence(within the same millisecond)
BitsAllocator(int, int, int) - 类 的构造器com.twitter.snowflake.sequence.BitsAllocator
Constructor with timestampBits, workerIdBits, sequenceBits
The highest bit used for sign, so 63 bits for timestampBits, workerIdBits, sequenceBits

C

com.twitter.snowflake.exception - 程序包 com.twitter.snowflake.exception
 
com.twitter.snowflake.sequence - 程序包 com.twitter.snowflake.sequence
 
com.twitter.snowflake.support - 程序包 com.twitter.snowflake.support
 
com.twitter.snowflake.worker - 程序包 com.twitter.snowflake.worker
 
create(WorkerIdAssigner) - 类 中的方法com.twitter.snowflake.support.ElasticIdSequenceFactory
 
create(long) - 类 中的方法com.twitter.snowflake.support.ElasticIdSequenceFactory
 
create(WorkerIdAssigner) - 接口 中的方法com.twitter.snowflake.support.IdSequenceFactory
 
create(long) - 接口 中的方法com.twitter.snowflake.support.IdSequenceFactory
 

E

ElasticIdSequenceFactory - com.twitter.snowflake.support中的类
+------+----------------------+----------------+-----------+ | sign | delta millisecond | worker node id | sequence | +------+----------------------+----------------+-----------+ 1bit timeBits workerBits seqBits Note that: The total bits must be 64 -1
ElasticIdSequenceFactory() - 类 的构造器com.twitter.snowflake.support.ElasticIdSequenceFactory
 
epochTimestamp - 类 中的变量com.twitter.snowflake.support.ElasticIdSequenceFactory
epoch timestamp

G

getMaxDeltaTime() - 类 中的方法com.twitter.snowflake.sequence.BitsAllocator
 
getMaxSequence() - 类 中的方法com.twitter.snowflake.sequence.BitsAllocator
 
getMaxWorkerId() - 类 中的方法com.twitter.snowflake.sequence.BitsAllocator
 
getSequenceBits() - 类 中的方法com.twitter.snowflake.sequence.BitsAllocator
 
getSignBits() - 类 中的方法com.twitter.snowflake.sequence.BitsAllocator
Getters
getTimestampBits() - 类 中的方法com.twitter.snowflake.sequence.BitsAllocator
 
getTimestampShift() - 类 中的方法com.twitter.snowflake.sequence.BitsAllocator
 
getWorkerIdBits() - 类 中的方法com.twitter.snowflake.sequence.BitsAllocator
 
getWorkerIdShift() - 类 中的方法com.twitter.snowflake.sequence.BitsAllocator
 

I

IdSequence - com.twitter.snowflake.sequence中的接口
Represents a unique id generator.
IdSequenceFactory - com.twitter.snowflake.support中的接口
 

M

MillisIdSequenceFactory - com.twitter.snowflake.support中的类
The unique id has 64bits (long), default allocated as blow:
sign: The highest bit is 0 delta millisecond: The next 28 bits, represents delta seconds since a customer epoch(2017-01-01 00:00:00.000).
MillisIdSequenceFactory() - 类 的构造器com.twitter.snowflake.support.MillisIdSequenceFactory
 

N

nextId() - 接口 中的方法com.twitter.snowflake.sequence.IdSequence
Generate a unique id
nextId() - 类 中的方法com.twitter.snowflake.sequence.SnowFlakeSequence
Generate unique id

P

parse(long) - 接口 中的方法com.twitter.snowflake.sequence.IdSequence
Parse the ID into elements which are used to generate the ID.
parse(long) - 类 中的方法com.twitter.snowflake.sequence.SnowFlakeSequence
 

S

SecondsIdSequenceFactory - com.twitter.snowflake.support中的类
The unique id has 64bits (long), default allocated as blow:
sign: The highest bit is 0 delta seconds: The next 28 bits, represents delta seconds since a customer epoch(2017-01-01 00:00:00.000).
SecondsIdSequenceFactory() - 类 的构造器com.twitter.snowflake.support.SecondsIdSequenceFactory
 
seqBits - 类 中的变量com.twitter.snowflake.support.ElasticIdSequenceFactory
 
setEpochTimestamp(long) - 类 中的方法com.twitter.snowflake.support.ElasticIdSequenceFactory
 
setSeqBits(int) - 类 中的方法com.twitter.snowflake.support.ElasticIdSequenceFactory
 
setTimeBits(int) - 类 中的方法com.twitter.snowflake.support.ElasticIdSequenceFactory
 
setTimeUnit(TimeUnit) - 类 中的方法com.twitter.snowflake.support.ElasticIdSequenceFactory
 
setWorkerBits(int) - 类 中的方法com.twitter.snowflake.support.ElasticIdSequenceFactory
 
SimpleWorkerIdAssigner - com.twitter.snowflake.worker中的类
 
SimpleWorkerIdAssigner(long) - 类 的构造器com.twitter.snowflake.worker.SimpleWorkerIdAssigner
 
SnowFlakeException - com.twitter.snowflake.exception中的异常错误
SnowFlakeException
SnowFlakeException() - 异常错误 的构造器com.twitter.snowflake.exception.SnowFlakeException
Default constructor
SnowFlakeException(String, Throwable) - 异常错误 的构造器com.twitter.snowflake.exception.SnowFlakeException
Constructor with message & cause
SnowFlakeException(String) - 异常错误 的构造器com.twitter.snowflake.exception.SnowFlakeException
Constructor with message
SnowFlakeException(String, Object...) - 异常错误 的构造器com.twitter.snowflake.exception.SnowFlakeException
Constructor with message format
SnowFlakeException(Throwable) - 异常错误 的构造器com.twitter.snowflake.exception.SnowFlakeException
Constructor with cause
SnowFlakeSequence - com.twitter.snowflake.sequence中的类
The unique id has 64bits (long) +------+----------------------+----------------+-----------+ | sign | delta millisecond | worker node id | sequence | +------+----------------------+----------------+-----------+ 1bit timeBits workerBits seqBits Note that: The total bits must be 64 sign: The highest bit is 0 delta millisecond: worker id: sequence:
SnowFlakeSequence(int, int, int, long, long) - 类 的构造器com.twitter.snowflake.sequence.SnowFlakeSequence
 
SnowFlakeSequence(TimeUnit, int, int, int, long, long) - 类 的构造器com.twitter.snowflake.sequence.SnowFlakeSequence
 

T

timeBits - 类 中的变量com.twitter.snowflake.support.ElasticIdSequenceFactory
Bits allocate
timeUnit - 类 中的变量com.twitter.snowflake.support.ElasticIdSequenceFactory
 
TOTAL_BITS - 类 中的静态变量com.twitter.snowflake.sequence.BitsAllocator
Total 64 bits

W

workerBits - 类 中的变量com.twitter.snowflake.support.ElasticIdSequenceFactory
 
WorkerIdAssigner - com.twitter.snowflake.worker中的接口
Represents a worker id assigner for IdSequence
A B C E G I M N P S T W 

Copyright © 2018. All rights reserved.