Package org.agrona.concurrent
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.
Generates unique identifiers that fit in a 64-bit word.
-
Method Summary
-
Method Details
-
nextId
long nextId()Generate the next unique id.- Returns:
- the next unique id.
-