Uses of Record Class
com.fayupable.snowflake.config.SnowflakeConfig
Packages that use SnowflakeConfig
Package
Description
-
Uses of SnowflakeConfig in com.fayupable.snowflake
Methods in com.fayupable.snowflake with parameters of type SnowflakeConfigModifier and TypeMethodDescriptionstatic SnowflakeIdSnowflakeId.fromLong(long id, SnowflakeConfig config) Constructors in com.fayupable.snowflake with parameters of type SnowflakeConfigModifierConstructorDescriptionSnowflakeIdGenerator(SnowflakeConfig config, ClockSource clock) SnowflakeIdGenerator(SnowflakeConfig config, ClockSource clock, SnowflakeMetrics metrics) -
Uses of SnowflakeConfig in com.fayupable.snowflake.config
Methods in com.fayupable.snowflake.config that return SnowflakeConfigModifier and TypeMethodDescriptionstatic SnowflakeConfigSnowflakeConfig.defaultConfig(long epoch, long datacenterId, long workerId) -
Uses of SnowflakeConfig in com.fayupable.snowflake.jpaspring
Methods in com.fayupable.snowflake.jpaspring that return SnowflakeConfigModifier and TypeMethodDescriptionSnowflakeAutoConfiguration.snowflakeConfig(SnowflakeProperties properties) Builds theSnowflakeConfigshared by theSnowflakeAutoConfiguration.idGenerator(com.fayupable.snowflake.config.SnowflakeConfig, org.springframework.beans.factory.ObjectProvider<io.micrometer.core.instrument.MeterRegistry>)andSnowflakeAutoConfiguration.snowflakeHealthIndicator(com.fayupable.snowflake.config.SnowflakeConfig)beans, so both read the same datacenter/worker/epoch values from a single source.Methods in com.fayupable.snowflake.jpaspring with parameters of type SnowflakeConfigModifier and TypeMethodDescriptionSnowflakeAutoConfiguration.idGenerator(SnowflakeConfig config, org.springframework.beans.factory.ObjectProvider<io.micrometer.core.instrument.MeterRegistry> registryProvider) Creates the singletonIdGeneratorfor this application instance and registers it withSnowflakeIdGeneratorHolderso that@SnowflakeGeneratedId-annotated entity fields can be populated by Hibernate.org.springframework.boot.health.contributor.HealthIndicatorSnowflakeAutoConfiguration.snowflakeHealthIndicator(SnowflakeConfig config) ExposesdatacenterId,workerIdand the timestamp overflow horizon through/actuator/health, so operators can check this instance's Snowflake identity and epoch headroom without reading logs.