Package com.fayupable.snowflake.port
Interface IdGenerator
- All Known Implementing Classes:
SnowflakeIdGenerator
public interface IdGenerator
Input port for generating unique identifiers.
Implementations decide the algorithm (Snowflake, ULID, etc.).
-
Method Summary
-
Method Details
-
nextId
long nextId()
-