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