Class SnowflakeIdProperties.IdDefinition

java.lang.Object
me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties.IdDefinition
Direct Known Subclasses:
SnowflakeIdProperties.ShardIdDefinition
Enclosing class:
SnowflakeIdProperties

public static class SnowflakeIdProperties.IdDefinition extends Object
  • Constructor Details

    • IdDefinition

      public IdDefinition()
  • Method Details

    • getNamespace

      public String getNamespace()
    • setNamespace

      public void setNamespace(String namespace)
    • isClockSync

      public boolean isClockSync()
    • setClockSync

      public void setClockSync(boolean clockSync)
    • isFriendly

      public boolean isFriendly()
    • setFriendly

      public void setFriendly(boolean friendly)
    • getTimestampUnit

    • setTimestampUnit

      public void setTimestampUnit(SnowflakeIdProperties.IdDefinition.TimestampUnit timestampUnit)
    • getEpoch

      public long getEpoch()
    • setEpoch

      public void setEpoch(long epoch)
    • getMachineBit

      public Integer getMachineBit()
    • setMachineBit

      public void setMachineBit(Integer machineBit)
    • 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

      public IdConverterDefinition getConverter()
    • setConverter

      public void setConverter(IdConverterDefinition converter)