Module com.github.f4b6a3.uuid
Class DefaultNodeIdFunction
- java.lang.Object
-
- com.github.f4b6a3.uuid.factory.function.impl.DefaultNodeIdFunction
-
- All Implemented Interfaces:
NodeIdFunction,LongSupplier
public final class DefaultNodeIdFunction extends Object implements NodeIdFunction
Function that returns a final random multicast node identifier.The random value is generated once during instantiation.
- See Also:
NodeIdFunction
-
-
Constructor Summary
Constructors Constructor Description DefaultNodeIdFunction()
-
-
-
Method Detail
-
getAsLong
public long getAsLong()
- Specified by:
getAsLongin interfaceLongSupplier
-
-