Class SnowflakeIdProperties
java.lang.Object
me.ahoo.cosid.spring.boot.starter.snowflake.SnowflakeIdProperties
@ConfigurationProperties(prefix="cosid.snowflake")
public class SnowflakeIdProperties
extends Object
SnowflakeId Properties.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlong
getEpoch()
getShare()
boolean
void
setEnabled
(boolean enabled) void
setEpoch
(long epoch) void
setProvider
(Map<String, SnowflakeIdProperties.IdDefinition> provider) void
void
-
Field Details
-
PREFIX
- See Also:
-
-
Constructor Details
-
SnowflakeIdProperties
public SnowflakeIdProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getZoneId
-
setZoneId
-
getEpoch
public long getEpoch() -
setEpoch
public void setEpoch(long epoch) -
getProvider
-
setProvider
-