Module com.github.f4b6a3.uuid
Class HashNodeIdFunction
- java.lang.Object
-
- com.github.f4b6a3.uuid.factory.function.impl.HashNodeIdFunction
-
- All Implemented Interfaces:
NodeIdFunction,LongSupplier
public final class HashNodeIdFunction extends Object implements NodeIdFunction
Function that returns a hash of host name, MAC and IP.The hash is calculated once during instantiation.
- See Also:
NodeIdFunction,MachineId
-
-
Constructor Summary
Constructors Constructor Description HashNodeIdFunction()
-
-
-
Method Detail
-
getAsLong
public long getAsLong()
- Specified by:
getAsLongin interfaceLongSupplier
-
-