Class CosIdGeneratorProperties
java.lang.Object
me.ahoo.cosid.spring.boot.starter.cosid.CosIdGeneratorProperties
@ConfigurationProperties(prefix="cosid.generator")
public class CosIdGeneratorProperties
extends Object
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
getType()
boolean
void
setEnabled
(boolean enabled) void
setMachineBit
(int machineBit) void
setNamespace
(String namespace) void
setSequenceBit
(int sequenceBit) void
setSequenceResetThreshold
(int sequenceResetThreshold) void
setTimestampBit
(int timestampBit) void
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
CosIdGeneratorProperties
public CosIdGeneratorProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getNamespace
-
setNamespace
-
getMachineBit
public int getMachineBit() -
setMachineBit
public void setMachineBit(int machineBit) -
getTimestampBit
public int getTimestampBit() -
setTimestampBit
public void setTimestampBit(int timestampBit) -
getSequenceBit
public int getSequenceBit() -
setSequenceBit
public void setSequenceBit(int sequenceBit) -
getSequenceResetThreshold
public int getSequenceResetThreshold() -
setSequenceResetThreshold
public void setSequenceResetThreshold(int sequenceResetThreshold) -
getType
-
setType
-