Package io.camunda.zeebe.engine.state
Interface KeyGenerator
- All Known Subinterfaces:
KeyGeneratorControls
- All Known Implementing Classes:
DbKeyGenerator
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Generate unique keys. Should be used for records only.
-
Method Summary
Modifier and TypeMethodDescriptionlong
nextKey()
Returns the next key of a record and updates the key generator.
-
Method Details
-
nextKey
long nextKey()Returns the next key of a record and updates the key generator.- Returns:
- the next key for a new record
-