public class StringSnowflakeId extends StringIdGeneratorDecorator implements SnowflakeId
actual, idConverterTOTAL_BIT| Constructor and Description |
|---|
StringSnowflakeId(SnowflakeId actual,
IdConverter idConverter) |
| Modifier and Type | Method and Description |
|---|---|
long |
getEpoch() |
long |
getLastTimestamp() |
int |
getMachineBit() |
long |
getMachineId() |
long |
getMaxMachine() |
long |
getMaxSequence() |
long |
getMaxTimestamp() |
int |
getSequenceBit() |
int |
getTimestampBit() |
getActual, idConverterclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdefaultSequenceResetThreshold, isSafeJavascriptgenerate, generateAsString, idConvertergenerate, getActualpublic StringSnowflakeId(SnowflakeId actual, IdConverter idConverter)
public long getEpoch()
getEpoch in interface SnowflakeIdpublic int getTimestampBit()
getTimestampBit in interface SnowflakeIdpublic int getMachineBit()
getMachineBit in interface SnowflakeIdpublic int getSequenceBit()
getSequenceBit in interface SnowflakeIdpublic long getMaxTimestamp()
getMaxTimestamp in interface SnowflakeIdpublic long getMaxMachine()
getMaxMachine in interface SnowflakeIdpublic long getMaxSequence()
getMaxSequence in interface SnowflakeIdpublic long getLastTimestamp()
getLastTimestamp in interface SnowflakeIdpublic long getMachineId()
getMachineId in interface SnowflakeId