public final class MacNodeIdFunction extends Object implements NodeIdFunction
The MAC address is obtained once during instantiation.
If no MAC address is found, it returns a random multicast node identifier.
NodeIdFunction| Constructor and Description |
|---|
MacNodeIdFunction()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getAsLong() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMulticastRandom, getRandom, isMulticast, toExpectedRange, toMulticastpublic long getAsLong()
getAsLong in interface LongSupplierCopyright © 2024. All rights reserved.