Package google.registry.model
Class IdService
java.lang.Object
google.registry.model.IdService
Allocates a
long
to use as a @Id
, (part) of the primary SQL key for an entity.-
Method Summary
Modifier and TypeMethodDescriptionstatic long
A SQL Sequence based ID allocator that generates an ID from a monotonically increasingAtomicLong
-
Method Details
-
allocateId
public static long allocateId()A SQL Sequence based ID allocator that generates an ID from a monotonically increasingAtomicLong
The generated IDs are project-wide unique.
-