Class SnowflakeIdGenerator

java.lang.Object
com.fayupable.snowflake.SnowflakeIdGenerator
All Implemented Interfaces:
IdGenerator

public final class SnowflakeIdGenerator extends Object implements IdGenerator
Thread-safe Snowflake id generator. Encodes timestamp and sequence into a single AtomicLong state, updated via CAS, avoiding locks while guaranteeing monotonic, collision-free ids per node.