Module com.github.f4b6a3.uuid
Class DefaultTimeFunction
- java.lang.Object
-
- com.github.f4b6a3.uuid.factory.function.impl.DefaultTimeFunction
-
- All Implemented Interfaces:
TimeFunction,LongSupplier
public final class DefaultTimeFunction extends Object implements TimeFunction
Function that returns a number of 100-nanoseconds since 1970-01-01 (Unix epoch).It can advance 1ms or more ahead of system clock on heavy load.
- See Also:
TimeFunction
-
-
Constructor Summary
Constructors Constructor Description DefaultTimeFunction()Default constructor.DefaultTimeFunction(Clock clock)Default constructor with aClockinstance.
-
-
-
Method Detail
-
getAsLong
public long getAsLong()
- Specified by:
getAsLongin interfaceLongSupplier
-
-