public final class NetGroupReceiveMode
extends java.lang.Object
NetGroupReceiveMode
- NetGroupReceiveMode class is an enumeration
of constant values used for the receiveMode property of the NetGroup
class.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXACT
EXACT - Specifies that this node accepts local messages
from neighbors only if the address the neighbor uses matches this node's address exactly. |
static java.lang.String |
NEAREST
NEAREST - Specifies that this node accepts local messages from neighbors that send messages
to group addresses that don't match this node's address exactly. |
public static final java.lang.String EXACT
EXACT
- Specifies that this node accepts local messages
from neighbors only if the address the neighbor uses matches this node's address exactly.
That is, this node considers itself as nearest for any NetGroup.sendToNearest() call only
if the groupAddress parameter passed to NetGroup.sendToNearest() matches this node's group address exactly.
This value is the default setting.
NEAREST
.
With this value set, a node waits for its connectivity to stabilize before participating in the Directed Routing mesh.public static final java.lang.String NEAREST
NEAREST
- Specifies that this node accepts local messages from neighbors that send messages
to group addresses that don't match this node's address exactly.
Messages are received when this node is nearest among all neighbors whose receive mode is NEAREST
.
Distance is measured between addresses on the ring mod 2^256.