public interface SnowflakeId extends IdGenerator

| Modifier and Type | Field and Description |
|---|---|
static int |
TOTAL_BIT |
| Modifier and Type | Method and Description |
|---|---|
static long |
defaultSequenceResetThreshold(int sequenceBit) |
long |
getEpoch() |
long |
getLastTimestamp() |
int |
getMachineBit() |
long |
getMachineId() |
long |
getMaxMachine() |
long |
getMaxSequence() |
long |
getMaxTimestamp() |
int |
getSequenceBit() |
int |
getTimestampBit() |
default boolean |
isSafeJavascript()
是否是 Javascript 安全的 SnowflakeId.
|
generate, generateAsString, idConverterstatic final int TOTAL_BIT
long getEpoch()
int getTimestampBit()
int getMachineBit()
int getSequenceBit()
default boolean isSafeJavascript()
SafeJavaScriptSnowflakeId.JAVA_SCRIPT_MAX_SAFE_NUMBER_BIT.long getMaxTimestamp()
long getMaxMachine()
long getMaxSequence()
long getLastTimestamp()
long getMachineId()
static long defaultSequenceResetThreshold(int sequenceBit)