public static enum Cds.Cluster.LbPolicy extends Enum<Cds.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.api.v2.Cluster.LbPolicy| Enum Constant and Description |
|---|
LEAST_REQUEST
Refer to the :ref:`least request load balancing
policy<arch_overview_load_balancing_types_least_request>`
for an explanation.
|
MAGLEV
Refer to the :ref:`Maglev load balancing policy<arch_overview_load_balancing_types_maglev>`
for an explanation.
|
ORIGINAL_DST_LB
Refer to the :ref:`original destination load balancing
policy<arch_overview_load_balancing_types_original_destination>`
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 |
LEAST_REQUEST_VALUE
Refer to the :ref:`least request load balancing
policy<arch_overview_load_balancing_types_least_request>`
for an explanation.
|
static int |
MAGLEV_VALUE
Refer to the :ref:`Maglev load balancing policy<arch_overview_load_balancing_types_maglev>`
for an explanation.
|
static int |
ORIGINAL_DST_LB_VALUE
Refer to the :ref:`original destination load balancing
policy<arch_overview_load_balancing_types_original_destination>`
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 Cds.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<Cds.Cluster.LbPolicy> |
internalGetValueMap() |
static Cds.Cluster.LbPolicy |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Cds.Cluster.LbPolicy |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Cds.Cluster.LbPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Cds.Cluster.LbPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cds.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 Cds.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 Cds.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 Cds.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 Cds.Cluster.LbPolicy ORIGINAL_DST_LB
Refer to the :ref:`original destination load balancing policy<arch_overview_load_balancing_types_original_destination>` for an explanation.
ORIGINAL_DST_LB = 4;public static final Cds.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 Cds.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 ORIGINAL_DST_LB_VALUE
Refer to the :ref:`original destination load balancing policy<arch_overview_load_balancing_types_original_destination>` for an explanation.
ORIGINAL_DST_LB = 4;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 Cds.Cluster.LbPolicy[] values()
for (Cds.Cluster.LbPolicy c : Cds.Cluster.LbPolicy.values()) System.out.println(c);
public static Cds.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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Cds.Cluster.LbPolicy valueOf(int value)
forNumber(int) instead.public static Cds.Cluster.LbPolicy forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Cds.Cluster.LbPolicy> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Cds.Cluster.LbPolicy valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018 The Envoy Project. All rights reserved.