public class SeataSnowflake extends Object implements Generator<Long>, Serializable
符号位(1bit) - 节点标志ID(10bit)- 时间戳相对值(41bit) - 递增序号(12bit) (0) - (0000000000) - (0000000000 0000000000 0000000000 0000000000 0) - (000000000000)
| 限定符和类型 | 字段和说明 |
|---|---|
static long |
DEFAULT_TWEPOCH
默认的起始时间,为2020-05-03
|
protected static int |
MAX_NODE_ID |
| 构造器和说明 |
|---|
SeataSnowflake()
构造
|
SeataSnowflake(Date epochDate,
Long nodeId)
构造
|
SeataSnowflake(Long nodeId)
构造
|
Copyright © 2024. All rights reserved.