类 SnowflakeId16
- 所有已实现的接口:
Serializable
|--------|--------|--------|--------|--------|--------|--------|--------| |00000000|00011111|11111111|11111111|11111111|11111111|11111111|11111111| |--------|---xxxxx|xxxxxxxx|xxxxxxxx|xxxxxxxx|xxx-----|--------|--------| |--------|--------|--------|--------|--------|---xxxxx|xxxxxxxx|xxx-----| |--------|--------|--------|--------|--------|--------|--------|---xxxxx|
Maximum ID = 11111_11111111_11111111_11111111_11111111_11111111_11111111
Maximum TS = 11111_11111111_11111111_11111111_111
Maximum NT = ----- -------- -------- -------- ---11111_11111111_111 = 65535
Maximum SH = ----- -------- -------- -------- -------- -------- ---11111 = 31
It can generate 64k unique id per IP and up to 2106-02-07T06:28:15Z.
- 另请参阅:
-
构造器概要
构造器 -
方法概要
-
构造器详细资料
-
SnowflakeId16
public SnowflakeId16()
-
-
方法详细资料
-
nextId
public static long nextId() -
stringIdToLongId
-