public static enum Cluster.RingHashLbConfig.HashFunction extends Enum<Cluster.RingHashLbConfig.HashFunction> implements com.google.protobuf.ProtocolMessageEnum
The hash function used to hash hosts onto the ketama ring.Protobuf enum
envoy.api.v2.Cluster.RingHashLbConfig.HashFunction| Enum Constant and Description |
|---|
MURMUR_HASH_2
Use `MurmurHash2 <https://sites.google.com/site/murmurhash/>`_, this is compatible with
std:hash<string> in GNU libstdc++ 3.4.20 or above.
|
UNRECOGNIZED |
XX_HASH
Use `xxHash <https://github.com/Cyan4973/xxHash>`_, this is the default hash function.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
MURMUR_HASH_2_VALUE
Use `MurmurHash2 <https://sites.google.com/site/murmurhash/>`_, this is compatible with
std:hash<string> in GNU libstdc++ 3.4.20 or above.
|
static int |
XX_HASH_VALUE
Use `xxHash <https://github.com/Cyan4973/xxHash>`_, this is the default hash function.
|
| Modifier and Type | Method and Description |
|---|---|
static Cluster.RingHashLbConfig.HashFunction |
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.RingHashLbConfig.HashFunction> |
internalGetValueMap() |
static Cluster.RingHashLbConfig.HashFunction |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Cluster.RingHashLbConfig.HashFunction |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Cluster.RingHashLbConfig.HashFunction |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Cluster.RingHashLbConfig.HashFunction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cluster.RingHashLbConfig.HashFunction XX_HASH
Use `xxHash <https://github.com/Cyan4973/xxHash>`_, this is the default hash function.
XX_HASH = 0;public static final Cluster.RingHashLbConfig.HashFunction MURMUR_HASH_2
Use `MurmurHash2 <https://sites.google.com/site/murmurhash/>`_, this is compatible with std:hash<string> in GNU libstdc++ 3.4.20 or above. This is typically the case when compiled on Linux and not macOS.
MURMUR_HASH_2 = 1;public static final Cluster.RingHashLbConfig.HashFunction UNRECOGNIZED
public static final int XX_HASH_VALUE
Use `xxHash <https://github.com/Cyan4973/xxHash>`_, this is the default hash function.
XX_HASH = 0;public static final int MURMUR_HASH_2_VALUE
Use `MurmurHash2 <https://sites.google.com/site/murmurhash/>`_, this is compatible with std:hash<string> in GNU libstdc++ 3.4.20 or above. This is typically the case when compiled on Linux and not macOS.
MURMUR_HASH_2 = 1;public static Cluster.RingHashLbConfig.HashFunction[] values()
for (Cluster.RingHashLbConfig.HashFunction c : Cluster.RingHashLbConfig.HashFunction.values()) System.out.println(c);
public static Cluster.RingHashLbConfig.HashFunction 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 Cluster.RingHashLbConfig.HashFunction valueOf(int value)
forNumber(int) instead.public static Cluster.RingHashLbConfig.HashFunction forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<Cluster.RingHashLbConfig.HashFunction> 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 Cluster.RingHashLbConfig.HashFunction valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.