Interface TimestampGenerator
- All Known Implementing Classes:
IncrementalTimestampGenerator
public interface TimestampGenerator
Generator for timestamps. The concrete class the represents the timestamp
is defined by implementing classes.
Also, implementations should be thread safe.
- Author:
- Alfonso Vásquez
-
Method Summary
-
Method Details
-
generate
long generate()Generates a new timestamp. The implementations should return an identifier that's unique across repeated calls in a considerable amount of time.- Returns:
- the new timestamp
-