All Classes and Interfaces
Class
Description
Thrown when the clock source reports a time earlier than the last generated id's timestamp.
Output port that abstracts the current time source.
Input port for generating unique identifiers.
Publishes generator activity as Micrometer counters, so it shows up in
whatever backend the application already has configured (Prometheus,
Grafana, or nothing at all if no registry is wired).
Default
SnowflakeMetrics implementation that discards every event.Wires a Spring-managed
IdGenerator from SnowflakeProperties and
publishes it to SnowflakeIdGeneratorHolder, since Hibernate instantiates
SnowflakeIdentifierGenerator via reflection and never asks the
ApplicationContext for it.Configuration for the Snowflake id layout.
Marks a JPA id field or property as generated by the Snowflake algorithm.
Value object representing a generated Snowflake id decomposed into its parts.
Hibernate
IdentifierGenerator that delegates id generation to whatever
IdGenerator is registered in
SnowflakeIdGeneratorHolder.Thread-safe Snowflake id generator.
Static bridge between a Spring/DI-managed
IdGenerator and Hibernate, which
instantiates SnowflakeIdentifierGenerator via reflection and never consults
the dependency injection container.Output port for observing generator activity.
Binds to the
snowflake prefix in application.yml / application.properties.Production adapter for ClockSource, backed by the system clock.