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
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
getType()
boolean
boolean
void
setEnabled
(boolean enabled) void
setMachineBit
(int machineBit) void
setNamespace
(String namespace) void
setPadStart
(boolean padStart) void
setSequenceBit
(int sequenceBit) void
setSequenceResetThreshold
(int sequenceResetThreshold) void
setTimestampBit
(int timestampBit) void
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) -
getZoneId
-
setZoneId
-
isPadStart
public boolean isPadStart() -
setPadStart
public void setPadStart(boolean padStart) -
getType
-
setType
-