Class SnowflakeIdProperties.IdDefinition
java.lang.Object
me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
- Direct Known Subclasses:
SnowflakeIdProperties.ShardIdDefinition
- Enclosing class:
- SnowflakeIdProperties
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetEpoch()intlongintbooleanvoidsetClockSync(boolean clockSync) voidsetConverter(IdConverterDefinition converter) voidsetEpoch(long epoch) voidsetMachineBit(Integer machineBit) voidsetNamespace(String namespace) voidsetSequenceBit(int sequenceBit) voidsetSequenceResetThreshold(long sequenceResetThreshold) voidsetTimestampBit(int timestampBit) voidsetTimestampUnit(SnowflakeIdProperties.IdDefinition.TimestampUnit timestampUnit)
-
Constructor Details
-
IdDefinition
public IdDefinition()
-
-
Method Details
-
getNamespace
-
setNamespace
-
isClockSync
public boolean isClockSync() -
setClockSync
public void setClockSync(boolean clockSync) -
getTimestampUnit
-
setTimestampUnit
-
getEpoch
public long getEpoch() -
setEpoch
public void setEpoch(long epoch) -
getMachineBit
-
setMachineBit
-
getTimestampBit
public int getTimestampBit() -
setTimestampBit
public void setTimestampBit(int timestampBit) -
getSequenceBit
public int getSequenceBit() -
setSequenceBit
public void setSequenceBit(int sequenceBit) -
getSequenceResetThreshold
public long getSequenceResetThreshold() -
setSequenceResetThreshold
public void setSequenceResetThreshold(long sequenceResetThreshold) -
getConverter
-
setConverter
-