Class IdService

java.lang.Object
google.registry.model.IdService

public final class IdService extends Object
Allocates a long to use as a @Id, (part) of the primary SQL key for an entity.
  • Method Details

    • allocateId

      public static long allocateId()
      A SQL Sequence based ID allocator that generates an ID from a monotonically increasing AtomicLong

      The generated IDs are project-wide unique.