Package one.microstream.storage.types
Interface StorageTimestampProvider
-
- All Known Implementing Classes:
StorageTimestampProvider.Default
public interface StorageTimestampProvider
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
StorageTimestampProvider.Default
-
Method Summary
Modifier and Type Method Description long
currentNanoTimestamp()
Provides the current timestamp in nanosecond precision but not necessarily in nanosecond accuracy.
-
-
-
Method Detail
-
currentNanoTimestamp
long currentNanoTimestamp()
Provides the current timestamp in nanosecond precision but not necessarily in nanosecond accuracy. However it is guaranteed that subsequent calls of this method never return an equal or lower value.- Returns:
- a strictly monotone increasing timestamp with nanosecond precision.
-
-