Package kieker.monitoring
Class IdGenerator
java.lang.Object
kieker.monitoring.IdGenerator
Generates unique identifiers in a thread-safe way.
- Since:
- 1.13
- Author:
- Christian Wulf
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IdGenerator
public IdGenerator()Creates a new generator for unique identifiers.
-
-
Method Details
-
getNewId
public long getNewId()Generate an unique id. (thread-safe)- Returns:
- a unique identifier
-