public class SnowflakeIDWorker extends Object
Modifier and Type | Field and Description |
---|---|
static long |
twepoch |
Constructor and Description |
---|
SnowflakeIDWorker(long workerId,
long datacenterId) |
Modifier and Type | Method and Description |
---|---|
long |
nextId() |
protected long |
tilNextMillis(long lastTimestamp) |
protected long |
timeGen() |
Copyright © 2020. All rights reserved.