- 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.