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| 构造器和说明 |
|---|
MacNodeIdFunction() |
| 限定符和类型 | 方法和说明 |
|---|---|
long |
getAsLong() |
getMulticastRandom, getRandom, isMulticast, toExpectedRange, toMulticastpublic long getAsLong()
getAsLong 在接口中 java.util.function.LongSupplierCopyright © 2024. All rights reserved.