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

A

allocate(long, long, long) - 类 中的方法com.littlenb.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.littlenb.snowflake.worker.SimpleWorkerIdAssigner
 
assignWorkerId() - 接口 中的方法com.littlenb.snowflake.worker.WorkerIdAssigner
Assign worker id for IdGenerator

B

BitsAllocator - com.littlenb.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.littlenb.snowflake.sequence.BitsAllocator
Constructor with timestampBits, workerIdBits, sequenceBits
The highest bit used for sign, so 63 bits for timestampBits, workerIdBits, sequenceBits

C

com.littlenb.snowflake.exception - 程序包 com.littlenb.snowflake.exception
 
com.littlenb.snowflake.sequence - 程序包 com.littlenb.snowflake.sequence
 
com.littlenb.snowflake.support - 程序包 com.littlenb.snowflake.support
 
com.littlenb.snowflake.worker - 程序包 com.littlenb.snowflake.worker
 
create(WorkerIdAssigner) - 类 中的方法com.littlenb.snowflake.support.ElasticIdGeneratorFactory
 
create(long) - 类 中的方法com.littlenb.snowflake.support.ElasticIdGeneratorFactory
 
create(WorkerIdAssigner) - 接口 中的方法com.littlenb.snowflake.support.IdGeneratorFactory
 
create(long) - 接口 中的方法com.littlenb.snowflake.support.IdGeneratorFactory
 

E

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

G

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

I

IdGenerator - com.littlenb.snowflake.sequence中的接口
Represents a unique id generator.
IdGeneratorFactory - com.littlenb.snowflake.support中的接口
 

M

MillisIdGeneratorFactory - com.littlenb.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).
MillisIdGeneratorFactory(long) - 类 的构造器com.littlenb.snowflake.support.MillisIdGeneratorFactory
 

N

nextId() - 接口 中的方法com.littlenb.snowflake.sequence.IdGenerator
Generate a unique id
nextId() - 类 中的方法com.littlenb.snowflake.sequence.SnowFlakeGenerator
Generate unique id
nextSegment(int) - 接口 中的方法com.littlenb.snowflake.sequence.IdGenerator
Generate unique id
nextSegment(int) - 类 中的方法com.littlenb.snowflake.sequence.SnowFlakeGenerator
 

P

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

S

SecondsIdGeneratorFactory - com.littlenb.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).
SecondsIdGeneratorFactory(long) - 类 的构造器com.littlenb.snowflake.support.SecondsIdGeneratorFactory
 
seqBits - 类 中的变量com.littlenb.snowflake.support.ElasticIdGeneratorFactory
 
setEpochTimestamp(long) - 类 中的方法com.littlenb.snowflake.support.ElasticIdGeneratorFactory
 
setSeqBits(int) - 类 中的方法com.littlenb.snowflake.support.ElasticIdGeneratorFactory
 
setTimeBits(int) - 类 中的方法com.littlenb.snowflake.support.ElasticIdGeneratorFactory
 
setTimeUnit(TimeUnit) - 类 中的方法com.littlenb.snowflake.support.ElasticIdGeneratorFactory
 
setWorkerBits(int) - 类 中的方法com.littlenb.snowflake.support.ElasticIdGeneratorFactory
 
SimpleWorkerIdAssigner - com.littlenb.snowflake.worker中的类
 
SimpleWorkerIdAssigner(long) - 类 的构造器com.littlenb.snowflake.worker.SimpleWorkerIdAssigner
 
SnowFlakeException - com.littlenb.snowflake.exception中的异常错误
SnowFlakeException
SnowFlakeException() - 异常错误 的构造器com.littlenb.snowflake.exception.SnowFlakeException
Default constructor
SnowFlakeException(String, Throwable) - 异常错误 的构造器com.littlenb.snowflake.exception.SnowFlakeException
Constructor with message & cause
SnowFlakeException(String) - 异常错误 的构造器com.littlenb.snowflake.exception.SnowFlakeException
Constructor with message
SnowFlakeException(String, Object...) - 异常错误 的构造器com.littlenb.snowflake.exception.SnowFlakeException
Constructor with message format
SnowFlakeException(Throwable) - 异常错误 的构造器com.littlenb.snowflake.exception.SnowFlakeException
Constructor with cause
SnowFlakeGenerator - com.littlenb.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:
SnowFlakeGenerator(int, int, int, long, long) - 类 的构造器com.littlenb.snowflake.sequence.SnowFlakeGenerator
 
SnowFlakeGenerator(TimeUnit, int, int, int, long, long) - 类 的构造器com.littlenb.snowflake.sequence.SnowFlakeGenerator
 

T

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

W

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

Copyright © 2020. All rights reserved.