Package org.ehrbase.util
Class UuidGenerator
- java.lang.Object
-
- org.ehrbase.util.UuidGenerator
-
public class UuidGenerator extends Object
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 Detail
-
randomUUID
public static UUID randomUUID()
UUID.randomUUID() with- Returns:
- a random UUID
-
-