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 TypeMethodDescriptionlong
getEpoch()
int
long
int
boolean
void
setClockSync
(boolean clockSync) void
setConverter
(IdConverterDefinition converter) void
setEpoch
(long epoch) void
setMachineBit
(Integer machineBit) void
setNamespace
(String namespace) void
setSequenceBit
(int sequenceBit) void
setSequenceResetThreshold
(long sequenceResetThreshold) void
setTimestampBit
(int timestampBit) void
setTimestampUnit
(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
-