Interface IdGenerator

All Known Implementing Classes:
SnowflakeIdGenerator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IdGenerator
Generates unique identifiers that fit in a 64-bit word.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Generate the next unique id.
  • Method Details

    • nextId

      long nextId()
      Generate the next unique id.
      Returns:
      the next unique id.