public static enum Cluster.LbPolicy extends Enum<Cluster.LbPolicy> implements com.google.protobuf.ProtocolMessageEnum
Refer to :ref:`load balancer type <arch_overview_load_balancing_types>` architecture overview section for information on each type.Protobuf enum
envoy.config.cluster.v3.Cluster.LbPolicy
Enum Constant and Description |
---|
CLUSTER_PROVIDED
This load balancer type must be specified if the configured cluster provides a cluster
specific load balancer.
|
LEAST_REQUEST
Refer to the :ref:`least request load balancing
policy<arch_overview_load_balancing_types_least_request>`
for an explanation.
|
LOAD_BALANCING_POLICY_CONFIG
[#not-implemented-hide:] Use the new :ref:`load_balancing_policy
<envoy_api_field_config.cluster.v3.Cluster.load_balancing_policy>` field to determine the LB policy.
|
MAGLEV
Refer to the :ref:`Maglev load balancing policy<arch_overview_load_balancing_types_maglev>`
for an explanation.
|
RANDOM
Refer to the :ref:`random load balancing
policy<arch_overview_load_balancing_types_random>`
for an explanation.
|
RING_HASH
Refer to the :ref:`ring hash load balancing
policy<arch_overview_load_balancing_types_ring_hash>`
for an explanation.
|
ROUND_ROBIN
Refer to the :ref:`round robin load balancing
policy<arch_overview_load_balancing_types_round_robin>`
for an explanation.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CLUSTER_PROVIDED_VALUE
This load balancer type must be specified if the configured cluster provides a cluster
specific load balancer.
|
static int |
LEAST_REQUEST_VALUE
Refer to the :ref:`least request load balancing
policy<arch_overview_load_balancing_types_least_request>`
for an explanation.
|
static int |
LOAD_BALANCING_POLICY_CONFIG_VALUE
[#not-implemented-hide:] Use the new :ref:`load_balancing_policy
<envoy_api_field_config.cluster.v3.Cluster.load_balancing_policy>` field to determine the LB policy.
|
static int |
MAGLEV_VALUE
Refer to the :ref:`Maglev load balancing policy<arch_overview_load_balancing_types_maglev>`
for an explanation.
|
static int |
RANDOM_VALUE
Refer to the :ref:`random load balancing
policy<arch_overview_load_balancing_types_random>`
for an explanation.
|
static int |
RING_HASH_VALUE
Refer to the :ref:`ring hash load balancing
policy<arch_overview_load_balancing_types_ring_hash>`
for an explanation.
|
static int |
ROUND_ROBIN_VALUE
Refer to the :ref:`round robin load balancing
policy<arch_overview_load_balancing_types_round_robin>`
for an explanation.
|
Modifier and Type | Method and Description |
---|---|
static Cluster.LbPolicy |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Cluster.LbPolicy> |
internalGetValueMap() |
static Cluster.LbPolicy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Cluster.LbPolicy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Cluster.LbPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Cluster.LbPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cluster.LbPolicy ROUND_ROBIN
Refer to the :ref:`round robin load balancing policy<arch_overview_load_balancing_types_round_robin>` for an explanation.
ROUND_ROBIN = 0;
public static final Cluster.LbPolicy LEAST_REQUEST
Refer to the :ref:`least request load balancing policy<arch_overview_load_balancing_types_least_request>` for an explanation.
LEAST_REQUEST = 1;
public static final Cluster.LbPolicy RING_HASH
Refer to the :ref:`ring hash load balancing policy<arch_overview_load_balancing_types_ring_hash>` for an explanation.
RING_HASH = 2;
public static final Cluster.LbPolicy RANDOM
Refer to the :ref:`random load balancing policy<arch_overview_load_balancing_types_random>` for an explanation.
RANDOM = 3;
public static final Cluster.LbPolicy MAGLEV
Refer to the :ref:`Maglev load balancing policy<arch_overview_load_balancing_types_maglev>` for an explanation.
MAGLEV = 5;
public static final Cluster.LbPolicy CLUSTER_PROVIDED
This load balancer type must be specified if the configured cluster provides a cluster specific load balancer. Consult the configured cluster's documentation for whether to set this option or not.
CLUSTER_PROVIDED = 6;
public static final Cluster.LbPolicy LOAD_BALANCING_POLICY_CONFIG
[#not-implemented-hide:] Use the new :ref:`load_balancing_policy <envoy_api_field_config.cluster.v3.Cluster.load_balancing_policy>` field to determine the LB policy. [#next-major-version: In the v3 API, we should consider deprecating the lb_policy field and instead using the new load_balancing_policy field as the one and only mechanism for configuring this.]
LOAD_BALANCING_POLICY_CONFIG = 7;
public static final Cluster.LbPolicy UNRECOGNIZED
public static final int ROUND_ROBIN_VALUE
Refer to the :ref:`round robin load balancing policy<arch_overview_load_balancing_types_round_robin>` for an explanation.
ROUND_ROBIN = 0;
public static final int LEAST_REQUEST_VALUE
Refer to the :ref:`least request load balancing policy<arch_overview_load_balancing_types_least_request>` for an explanation.
LEAST_REQUEST = 1;
public static final int RING_HASH_VALUE
Refer to the :ref:`ring hash load balancing policy<arch_overview_load_balancing_types_ring_hash>` for an explanation.
RING_HASH = 2;
public static final int RANDOM_VALUE
Refer to the :ref:`random load balancing policy<arch_overview_load_balancing_types_random>` for an explanation.
RANDOM = 3;
public static final int MAGLEV_VALUE
Refer to the :ref:`Maglev load balancing policy<arch_overview_load_balancing_types_maglev>` for an explanation.
MAGLEV = 5;
public static final int CLUSTER_PROVIDED_VALUE
This load balancer type must be specified if the configured cluster provides a cluster specific load balancer. Consult the configured cluster's documentation for whether to set this option or not.
CLUSTER_PROVIDED = 6;
public static final int LOAD_BALANCING_POLICY_CONFIG_VALUE
[#not-implemented-hide:] Use the new :ref:`load_balancing_policy <envoy_api_field_config.cluster.v3.Cluster.load_balancing_policy>` field to determine the LB policy. [#next-major-version: In the v3 API, we should consider deprecating the lb_policy field and instead using the new load_balancing_policy field as the one and only mechanism for configuring this.]
LOAD_BALANCING_POLICY_CONFIG = 7;
public static Cluster.LbPolicy[] values()
for (Cluster.LbPolicy c : Cluster.LbPolicy.values()) System.out.println(c);
public static Cluster.LbPolicy 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 nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static Cluster.LbPolicy valueOf(int value)
forNumber(int)
instead.public static Cluster.LbPolicy forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Cluster.LbPolicy> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Cluster.LbPolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.