跳过导航链接
B C D E F G H I J L N O P R S T U V W 

B

backwardId - 类 中的变量com.github.gobars.id.conf.Conf.IDPart
 
backwardIdFile(long) - 类 中的方法com.github.gobars.id.util.Util
 
Base - com.github.gobars.id.conf中的类
雪花算法的基本配置
Base() - 类 的构造器com.github.gobars.id.conf.Base
 

C

com.github.gobars.id - 程序包 com.github.gobars.id
 
com.github.gobars.id.conf - 程序包 com.github.gobars.id.conf
 
com.github.gobars.id.db - 程序包 com.github.gobars.id.db
 
com.github.gobars.id.ext - 程序包 com.github.gobars.id.ext
 
com.github.gobars.id.util - 程序包 com.github.gobars.id.util
 
com.github.gobars.id.worker - 程序包 com.github.gobars.id.worker
 
Conf - com.github.gobars.id.conf中的类
 
Conf(Base) - 类 的构造器com.github.gobars.id.conf.Conf
 
Conf.IDPart - com.github.gobars.id.conf中的类
 
Conf.TimestampByEnum - com.github.gobars.id.conf中的枚举
 
configure(DataSource) - 类 中的方法com.github.gobars.id.db.DbId
 
configure(String, String, String) - 类 中的方法com.github.gobars.id.db.DbId
 
configure(WorkerIdDb) - 类 中的方法com.github.gobars.id.db.DbId
 
ConnGetter - com.github.gobars.id.conf中的接口
 
ConnGetter.DsConnGetter - com.github.gobars.id.conf中的类
 
ConnGetter.JdbcConnGetter - com.github.gobars.id.conf中的类
 
currentTimeMillis() - 类 中的方法com.github.gobars.id.Snowflake
 

D

DbId - com.github.gobars.id.db中的类
ID生成器入口类。
DbId() - 类 的构造器com.github.gobars.id.db.DbId
 
DbType - com.github.gobars.id.util中的枚举
 
destroy() - 类 中的方法com.github.gobars.id.util.SystemClock
The destroy of executor service
DsConnGetter() - 类 的构造器com.github.gobars.id.conf.ConnGetter.DsConnGetter
 

E

exec(String) - 类 中的方法com.github.gobars.id.util.Util
 

F

Files - com.github.gobars.id.util中的类
 
Files() - 类 的构造器com.github.gobars.id.util.Files
 
findAvailableWorkerID(int, boolean) - 类 中的方法com.github.gobars.id.util.Files
 
fromSpec(String) - 类 中的静态方法com.github.gobars.id.conf.Base
 
fromSpec(String) - 类 中的静态方法com.github.gobars.id.conf.Conf
 

G

getConn() - 类 中的方法com.github.gobars.id.conf.ConnGetter.DsConnGetter
 
getConn() - 接口 中的方法com.github.gobars.id.conf.ConnGetter
Attempts to establish a connection with the data source that this DataSource object represents.
getConn() - 类 中的方法com.github.gobars.id.conf.ConnGetter.JdbcConnGetter
 
getDbType(DataSource) - 枚举 中的静态方法com.github.gobars.id.util.DbType
 
getDbType(Connection) - 枚举 中的静态方法com.github.gobars.id.util.DbType
 
getHostname() - 类 中的静态方法com.github.gobars.id.worker.WorkerIdHostname
 
getLocalHostLANAddress() - 类 中的方法com.github.gobars.id.util.Ip
Returns an InetAddress object encapsulating what is most likely the machine's LAN IP address.
getLong(ResultSet) - 类 中的方法com.github.gobars.id.db.SqlRunner
 
getObjects(ResultSet, int, SqlRunner.RowScanner) - 类 中的方法com.github.gobars.id.db.SqlRunner
 
getResults(ResultSet, int) - 类 中的方法com.github.gobars.id.db.SqlRunner
 
GOBARS_ID - 类 中的变量com.github.gobars.id.util.Files
 

H

homeFile(String) - 类 中的方法com.github.gobars.id.util.Files
 
HOSTNAME - 类 中的静态变量com.github.gobars.id.worker.WorkerIdHostname
 

I

id - 类 中的变量com.github.gobars.id.conf.Conf.IDPart
 
Id - com.github.gobars.id中的类
ID生成器入口类。
Id() - 类 的构造器com.github.gobars.id.Id
 
Id12 - com.github.gobars.id.ext中的类
 
Id12() - 类 的构造器com.github.gobars.id.ext.Id12
 
IdNext - com.github.gobars.id中的接口
 
IDPart() - 类 的构造器com.github.gobars.id.conf.Conf.IDPart
 
initBackwardIdLastTimesMap() - 类 中的方法com.github.gobars.id.conf.Conf
 
insert(String, Object...) - 类 中的方法com.github.gobars.id.db.SqlRunner
Executes an INSERT statement.
Ip - com.github.gobars.id.util中的类
 
Ip() - 类 的构造器com.github.gobars.id.util.Ip
 
isStillAlive(int) - 类 中的方法com.github.gobars.id.util.Pid
 

J

JdbcConnGetter() - 类 的构造器com.github.gobars.id.conf.ConnGetter.JdbcConnGetter
 

L

lastTs - 类 中的变量com.github.gobars.id.Snowflake
 
LOCAL_IP - 类 中的静态变量com.github.gobars.id.worker.WorkerIdIp
 
lockWorkerID(int, boolean) - 类 中的方法com.github.gobars.id.util.Files
 

N

next() - 类 中的方法com.github.gobars.id.db.DbId
获得下一个ID.
next() - 类 中的方法com.github.gobars.id.db.Seq
 
next() - 类 中的方法com.github.gobars.id.ext.Id12
获得下一个ID.
next() - 类 中的方法com.github.gobars.id.Id
获得下一个ID.
next() - 接口 中的方法com.github.gobars.id.IdNext
 
next() - 类 中的方法com.github.gobars.id.Snowflake
 
NO_GENERATED_KEY - 类 中的静态变量com.github.gobars.id.db.SqlRunner
 
NoRowsFoundException() - 异常错误 的构造器com.github.gobars.id.db.SqlRunner.NoRowsFoundException
 
now() - 类 中的静态方法com.github.gobars.id.util.SystemClock
 

O

OverMaxSeqException() - 异常错误 的构造器com.github.gobars.id.db.Seq.OverMaxSeqException
 

P

parseID(long) - 类 中的方法com.github.gobars.id.conf.Conf
 
parseWorkerId(String) - 类 中的静态方法com.github.gobars.id.worker.WorkerIdHostname
 
Pid - com.github.gobars.id.util中的类
 
Pid() - 类 的构造器com.github.gobars.id.util.Pid
 
PROCESS_ID - 类 中的变量com.github.gobars.id.util.Pid
 
processId - 类 中的变量com.github.gobars.id.util.Files
 

R

readBackwardId(long) - 类 中的方法com.github.gobars.id.util.Util
 
readFile(String) - 类 中的方法com.github.gobars.id.util.Files
 
resetDb() - 类 中的方法com.github.gobars.id.db.Seq
 
rotateBackwardId(long) - 类 中的方法com.github.gobars.id.db.SnowflakeDb
 
rotateBackwardId(long) - 类 中的方法com.github.gobars.id.Snowflake
 

S

saveBackwardId(long, long) - 类 中的方法com.github.gobars.id.util.Util
 
saveFile(String, String) - 类 中的方法com.github.gobars.id.util.Files
 
scanRow(int, ResultSet) - 接口 中的方法com.github.gobars.id.db.SqlRunner.RowScanner
 
select(int, SqlRunner.RowScanner, String, Object...) - 类 中的方法com.github.gobars.id.db.SqlRunner
Executes a SELECT statement that returns the first column's long value.
selectAll(String, Object...) - 类 中的方法com.github.gobars.id.db.SqlRunner
Executes a SELECT statement that returns multiple rows.
selectLong(String, Object...) - 类 中的方法com.github.gobars.id.db.SqlRunner
Executes a SELECT statement that returns the first column's long value.
selectOne(String, Object...) - 类 中的方法com.github.gobars.id.db.SqlRunner
Executes a SELECT statement that returns one row.
Seq - com.github.gobars.id.db中的类
从数据库中直接获得Seq.
Seq() - 类 的构造器com.github.gobars.id.db.Seq
 
Seq.OverMaxSeqException - com.github.gobars.id.db中的异常错误
 
sequence - 类 中的变量com.github.gobars.id.conf.Conf.IDPart
 
sequence - 类 中的变量com.github.gobars.id.Snowflake
 
sleep(long) - 类 中的方法com.github.gobars.id.util.Util
 
Snowflake - com.github.gobars.id中的类
雪花算法实现 添加时间回拨处理
Snowflake(Conf, long) - 类 的构造器com.github.gobars.id.Snowflake
 
SnowflakeDb - com.github.gobars.id.db中的类
 
SnowflakeDb(Conf, WorkerIdDb) - 类 的构造器com.github.gobars.id.db.SnowflakeDb
 
SPEC - 类 中的变量com.github.gobars.id.ext.Id12
 
SPEC - 类 中的变量com.github.gobars.id.Id
 
SqlRunner - com.github.gobars.id.db中的类
SQL执行器.
SqlRunner(Connection) - 类 的构造器com.github.gobars.id.db.SqlRunner
 
SqlRunner(Connection, boolean) - 类 的构造器com.github.gobars.id.db.SqlRunner
 
SqlRunner.NoRowsFoundException - com.github.gobars.id.db中的异常错误
 
SqlRunner.RowScanner - com.github.gobars.id.db中的接口
 
SystemClock - com.github.gobars.id.util中的类
Optimization of performance issues for System.currentTimeMillis() in high concurrency scenarios The call of System.currentTimeMillis() is much more time-consuming than the new normal object (the amount of time is higher than I have not tested, some say it is about 100 times) System.currentTimeMillis() is slow because it has to deal with the system once The background periodically updates the clock.

T

timestamp - 类 中的变量com.github.gobars.id.conf.Conf.IDPart
 
toString() - 类 中的方法com.github.gobars.id.conf.Conf.IDPart
 
tryAvailableLocalWorker(boolean) - 类 中的方法com.github.gobars.id.util.Files
找出目前本地已经生成的锁定文件的一个可用worderID列表.
tryLockFile(String, boolean) - 类 中的方法com.github.gobars.id.util.Files
 

U

update(String, Object...) - 类 中的方法com.github.gobars.id.db.SqlRunner
Executes an UPDATE statement.
updateDb() - 类 中的方法com.github.gobars.id.db.Seq
 
Util - com.github.gobars.id.util中的类
 
Util() - 类 的构造器com.github.gobars.id.util.Util
 

V

valueOf(String) - 枚举 中的静态方法com.github.gobars.id.conf.Conf.TimestampByEnum
返回带有指定名称的该类型的枚举常量。
valueOf(String) - 枚举 中的静态方法com.github.gobars.id.util.DbType
返回带有指定名称的该类型的枚举常量。
values() - 枚举 中的静态方法com.github.gobars.id.conf.Conf.TimestampByEnum
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。
values() - 枚举 中的静态方法com.github.gobars.id.util.DbType
按照声明该枚举类型的常量的顺序, 返回 包含这些常量的数组。

W

WORKER_ID - 类 中的静态变量com.github.gobars.id.worker.WorkerIdEnv
 
WORKER_ID - 类 中的静态变量com.github.gobars.id.worker.WorkerIdIp
 
WORKER_ID_PREFIX - 类 中的静态变量com.github.gobars.id.util.Files
 
workerID - 类 中的变量com.github.gobars.id.conf.Conf.IDPart
 
workerId() - 类 中的方法com.github.gobars.id.db.WorkerIdDb
 
workerId - 类 中的变量com.github.gobars.id.Snowflake
 
workerId() - 类 中的方法com.github.gobars.id.worker.WorkerIdComposite
 
workerId() - 类 中的方法com.github.gobars.id.worker.WorkerIdEnv
 
workerId() - 类 中的方法com.github.gobars.id.worker.WorkerIdHostname
 
workerId() - 类 中的方法com.github.gobars.id.worker.WorkerIdIp
生成worker ID
workerId() - 类 中的方法com.github.gobars.id.worker.WorkerIdLocalLockFile
 
workerId() - 类 中的方法com.github.gobars.id.worker.WorkerIdRandom
 
WorkerId - com.github.gobars.id中的接口
WorkerId 自定义接口
workerId() - 接口 中的方法com.github.gobars.id.WorkerId
生成worker ID
WorkerIdComposite - com.github.gobars.id.worker中的类
WorkerId组合器 组合多个WorkerID的实现,然后按顺序获取可用worker ID
WorkerIdComposite(List<WorkerId>) - 类 的构造器com.github.gobars.id.worker.WorkerIdComposite
 
WorkerIdComposite(WorkerId...) - 类 的构造器com.github.gobars.id.worker.WorkerIdComposite
 
WorkerIdDb - com.github.gobars.id.db中的类
从数据库中获得WorkerID
WorkerIdDb() - 类 的构造器com.github.gobars.id.db.WorkerIdDb
 
WorkerIdEnv - com.github.gobars.id.worker中的类
获得从环境变量中指定的WorkerID
WorkerIdEnv() - 类 的构造器com.github.gobars.id.worker.WorkerIdEnv
 
WorkerIdHostname - com.github.gobars.id.worker中的类
根据hostname命名归来了获取workerId.
WorkerIdHostname() - 类 的构造器com.github.gobars.id.worker.WorkerIdHostname
 
WorkerIdIp - com.github.gobars.id.worker中的类
基于当前机器IPv4最后8bit的workerId.
WorkerIdIp() - 类 的构造器com.github.gobars.id.worker.WorkerIdIp
 
WorkerIdLocalLockFile - com.github.gobars.id.worker中的类
获得从本地WorkerID锁文件中获得已有的workerID.
WorkerIdLocalLockFile() - 类 的构造器com.github.gobars.id.worker.WorkerIdLocalLockFile
 
WorkerIdRandom - com.github.gobars.id.worker中的类
随机生成workerId.
WorkerIdRandom() - 类 的构造器com.github.gobars.id.worker.WorkerIdRandom
 
B C D E F G H I J L N O P R S T U V W 
跳过导航链接

Copyright © 2021. All rights reserved.