public static enum Edge.RoutingPolicy extends Enum<Edge.RoutingPolicy> implements Serializable
Enum Constant and Description |
---|
BROADCAST
This policy sends each item to all candidate processors.
|
FANOUT
This policy sends an item to all members, but only to one processor on
each member.
|
ISOLATED
This policy sets up isolated parallel data paths between two vertices
as much as it can, given the level of mismatch between the local
parallelism (LP) of the upstream vs.
|
PARTITIONED
This policy sends every item to the one processor responsible for the
item's partition ID.
|
UNICAST
This policy chooses for each item a single destination processor
from the candidate set, with no restriction on the choice.
|
Modifier and Type | Method and Description |
---|---|
static Edge.RoutingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Edge.RoutingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Edge.RoutingPolicy UNICAST
public static final Edge.RoutingPolicy ISOLATED
This policy is only available on a local edge.
public static final Edge.RoutingPolicy PARTITIONED
public static final Edge.RoutingPolicy BROADCAST
public static final Edge.RoutingPolicy FANOUT
BROADCAST
and UNICAST
: an item is first broadcast to all members, and then,
on each member, it is unicast to one processor.
If the destination local parallelism is 1, the behavior is equal to
BROADCAST
. If the member count in the cluster is 1, the
behavior is equal to UNICAST
.
To work as expected, the edge must be also Edge.distributed()
.
Otherwise it will work just like UNICAST
.
public static Edge.RoutingPolicy[] values()
for (Edge.RoutingPolicy c : Edge.RoutingPolicy.values()) System.out.println(c);
public static Edge.RoutingPolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2023 Hazelcast, Inc.. All rights reserved.