Package one.microstream.storage.types
Class StorageTimestampProvider.Default
- java.lang.Object
-
- one.microstream.storage.types.StorageTimestampProvider.Default
-
- All Implemented Interfaces:
StorageTimestampProvider
- Enclosing interface:
- StorageTimestampProvider
public static final class StorageTimestampProvider.Default extends Object implements StorageTimestampProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.storage.types.StorageTimestampProvider
StorageTimestampProvider.Default
-
-
Constructor Summary
Constructors Constructor Description 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
public long currentNanoTimestamp()
Description copied from interface:StorageTimestampProvider
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.- Specified by:
currentNanoTimestamp
in interfaceStorageTimestampProvider
- Returns:
- a strictly monotone increasing timestamp with nanosecond precision.
-
-