Package org.ehrbase.util
Class UuidGenerator
java.lang.Object
org.ehrbase.util.UuidGenerator
Non-blocking generation of random V4 UUIDs.
UUIDs are prepared in batches, which increases throughput (while introducing a bit of jitter).
Usually UUID::randomUUID synchronizes on the shared SecureRandom instance,
which can lead to blocked threads.
-
Method Summary
-
Method Details
-
randomUUID
UUID.randomUUID() with- Returns:
- a random UUID
-