public static final class Cluster.RingHashLbConfig extends com.google.protobuf.GeneratedMessageV3 implements Cluster.RingHashLbConfigOrBuilder
Specific configuration for the :ref:`RingHash<arch_overview_load_balancing_types_ring_hash>` load balancing policy.Protobuf type
envoy.api.v2.Cluster.RingHashLbConfig| Modifier and Type | Class and Description |
|---|---|
static class |
Cluster.RingHashLbConfig.Builder
Specific configuration for the :ref:`RingHash<arch_overview_load_balancing_types_ring_hash>`
load balancing policy.
|
static class |
Cluster.RingHashLbConfig.HashFunction
The hash function used to hash hosts onto the ketama ring.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
HASH_FUNCTION_FIELD_NUMBER |
static int |
MAXIMUM_RING_SIZE_FIELD_NUMBER |
static int |
MINIMUM_RING_SIZE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static Cluster.RingHashLbConfig |
getDefaultInstance() |
Cluster.RingHashLbConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Cluster.RingHashLbConfig.HashFunction |
getHashFunction()
The hash function used to hash hosts onto the ketama ring.
|
int |
getHashFunctionValue()
The hash function used to hash hosts onto the ketama ring.
|
com.google.protobuf.UInt64Value |
getMaximumRingSize()
Maximum hash ring size.
|
com.google.protobuf.UInt64ValueOrBuilder |
getMaximumRingSizeOrBuilder()
Maximum hash ring size.
|
com.google.protobuf.UInt64Value |
getMinimumRingSize()
Minimum hash ring size.
|
com.google.protobuf.UInt64ValueOrBuilder |
getMinimumRingSizeOrBuilder()
Minimum hash ring size.
|
com.google.protobuf.Parser<Cluster.RingHashLbConfig> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasMaximumRingSize()
Maximum hash ring size.
|
boolean |
hasMinimumRingSize()
Minimum hash ring size.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Cluster.RingHashLbConfig.Builder |
newBuilder() |
static Cluster.RingHashLbConfig.Builder |
newBuilder(Cluster.RingHashLbConfig prototype) |
Cluster.RingHashLbConfig.Builder |
newBuilderForType() |
protected Cluster.RingHashLbConfig.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Cluster.RingHashLbConfig |
parseDelimitedFrom(InputStream input) |
static Cluster.RingHashLbConfig |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Cluster.RingHashLbConfig |
parseFrom(byte[] data) |
static Cluster.RingHashLbConfig |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Cluster.RingHashLbConfig |
parseFrom(ByteBuffer data) |
static Cluster.RingHashLbConfig |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Cluster.RingHashLbConfig |
parseFrom(com.google.protobuf.ByteString data) |
static Cluster.RingHashLbConfig |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Cluster.RingHashLbConfig |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Cluster.RingHashLbConfig |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Cluster.RingHashLbConfig |
parseFrom(InputStream input) |
static Cluster.RingHashLbConfig |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Cluster.RingHashLbConfig> |
parser() |
Cluster.RingHashLbConfig.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int MINIMUM_RING_SIZE_FIELD_NUMBER
public static final int HASH_FUNCTION_FIELD_NUMBER
public static final int MAXIMUM_RING_SIZE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasMinimumRingSize()
Minimum hash ring size. The larger the ring is (that is, the more hashes there are for each provided host) the better the request distribution will reflect the desired weights. Defaults to 1024 entries, and limited to 8M entries. See also :ref:`maximum_ring_size<envoy_api_field_Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 1 [(.validate.rules) = { ... }hasMinimumRingSize in interface Cluster.RingHashLbConfigOrBuilderpublic com.google.protobuf.UInt64Value getMinimumRingSize()
Minimum hash ring size. The larger the ring is (that is, the more hashes there are for each provided host) the better the request distribution will reflect the desired weights. Defaults to 1024 entries, and limited to 8M entries. See also :ref:`maximum_ring_size<envoy_api_field_Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 1 [(.validate.rules) = { ... }getMinimumRingSize in interface Cluster.RingHashLbConfigOrBuilderpublic com.google.protobuf.UInt64ValueOrBuilder getMinimumRingSizeOrBuilder()
Minimum hash ring size. The larger the ring is (that is, the more hashes there are for each provided host) the better the request distribution will reflect the desired weights. Defaults to 1024 entries, and limited to 8M entries. See also :ref:`maximum_ring_size<envoy_api_field_Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 1 [(.validate.rules) = { ... }getMinimumRingSizeOrBuilder in interface Cluster.RingHashLbConfigOrBuilderpublic int getHashFunctionValue()
The hash function used to hash hosts onto the ketama ring. The value defaults to :ref:`XX_HASH<envoy_api_enum_value_Cluster.RingHashLbConfig.HashFunction.XX_HASH>`.
.envoy.api.v2.Cluster.RingHashLbConfig.HashFunction hash_function = 3 [(.validate.rules) = { ... }getHashFunctionValue in interface Cluster.RingHashLbConfigOrBuilderpublic Cluster.RingHashLbConfig.HashFunction getHashFunction()
The hash function used to hash hosts onto the ketama ring. The value defaults to :ref:`XX_HASH<envoy_api_enum_value_Cluster.RingHashLbConfig.HashFunction.XX_HASH>`.
.envoy.api.v2.Cluster.RingHashLbConfig.HashFunction hash_function = 3 [(.validate.rules) = { ... }getHashFunction in interface Cluster.RingHashLbConfigOrBuilderpublic boolean hasMaximumRingSize()
Maximum hash ring size. Defaults to 8M entries, and limited to 8M entries, but can be lowered to further constrain resource use. See also :ref:`minimum_ring_size<envoy_api_field_Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 4 [(.validate.rules) = { ... }hasMaximumRingSize in interface Cluster.RingHashLbConfigOrBuilderpublic com.google.protobuf.UInt64Value getMaximumRingSize()
Maximum hash ring size. Defaults to 8M entries, and limited to 8M entries, but can be lowered to further constrain resource use. See also :ref:`minimum_ring_size<envoy_api_field_Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 4 [(.validate.rules) = { ... }getMaximumRingSize in interface Cluster.RingHashLbConfigOrBuilderpublic com.google.protobuf.UInt64ValueOrBuilder getMaximumRingSizeOrBuilder()
Maximum hash ring size. Defaults to 8M entries, and limited to 8M entries, but can be lowered to further constrain resource use. See also :ref:`minimum_ring_size<envoy_api_field_Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 4 [(.validate.rules) = { ... }getMaximumRingSizeOrBuilder in interface Cluster.RingHashLbConfigOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Cluster.RingHashLbConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Cluster.RingHashLbConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Cluster.RingHashLbConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Cluster.RingHashLbConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Cluster.RingHashLbConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Cluster.RingHashLbConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Cluster.RingHashLbConfig parseFrom(InputStream input) throws IOException
IOExceptionpublic static Cluster.RingHashLbConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Cluster.RingHashLbConfig parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Cluster.RingHashLbConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Cluster.RingHashLbConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Cluster.RingHashLbConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Cluster.RingHashLbConfig.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Cluster.RingHashLbConfig.Builder newBuilder()
public static Cluster.RingHashLbConfig.Builder newBuilder(Cluster.RingHashLbConfig prototype)
public Cluster.RingHashLbConfig.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Cluster.RingHashLbConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Cluster.RingHashLbConfig getDefaultInstance()
public static com.google.protobuf.Parser<Cluster.RingHashLbConfig> parser()
public com.google.protobuf.Parser<Cluster.RingHashLbConfig> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Cluster.RingHashLbConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.