public enum LoadBalanceStrategy extends Enum<LoadBalanceStrategy>
| Enum Constant and Description |
|---|
DO_NOT_LOAD_BALANCE
Do not load balance FlowFiles between nodes in the cluster.
|
PARTITION_BY_ATTRIBUTE
Determine which node to send a given FlowFile to based on the value of a user-specified FlowFile Attribute.
|
ROUND_ROBIN
FlowFiles will be distributed to nodes in the cluster in a Round-Robin fashion.
|
SINGLE_NODE
All FlowFiles will be sent to the same node.
|
| Modifier and Type | Method and Description |
|---|---|
static LoadBalanceStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoadBalanceStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoadBalanceStrategy DO_NOT_LOAD_BALANCE
public static final LoadBalanceStrategy PARTITION_BY_ATTRIBUTE
public static final LoadBalanceStrategy ROUND_ROBIN
public static final LoadBalanceStrategy SINGLE_NODE
public static LoadBalanceStrategy[] values()
for (LoadBalanceStrategy c : LoadBalanceStrategy.values()) System.out.println(c);
public static LoadBalanceStrategy 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 Apache NiFi Project. All rights reserved.