Class Cluster.RingHashLbConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Cluster.RingHashLbConfig.Builder>
com.google.protobuf.GeneratedMessage.Builder<Cluster.RingHashLbConfig.Builder>
io.envoyproxy.envoy.config.cluster.v3.Cluster.RingHashLbConfig.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cluster.RingHashLbConfigOrBuilder, Cloneable
- Enclosing class:
Cluster.RingHashLbConfig
public static final class Cluster.RingHashLbConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Cluster.RingHashLbConfig.Builder>
implements Cluster.RingHashLbConfigOrBuilder
Specific configuration for the :ref:`RingHash<arch_overview_load_balancing_types_ring_hash>` load balancing policy.Protobuf type
envoy.config.cluster.v3.Cluster.RingHashLbConfig-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate com.google.protobuf.UInt64Valueprivate com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> private com.google.protobuf.UInt64Valueprivate com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidclear()The hash function used to hash hosts onto the ketama ring.Maximum hash ring size.Minimum hash ring size.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe hash function used to hash hosts onto the ketama ring.intThe hash function used to hash hosts onto the ketama ring.com.google.protobuf.UInt64ValueMaximum hash ring size.com.google.protobuf.UInt64Value.BuilderMaximum hash ring size.com.google.protobuf.UInt64ValueOrBuilderMaximum hash ring size.com.google.protobuf.UInt64ValueMinimum hash ring size.com.google.protobuf.UInt64Value.BuilderMinimum hash ring size.com.google.protobuf.UInt64ValueOrBuilderMinimum hash ring size.booleanMaximum hash ring size.booleanMinimum hash ring size.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprivate com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> Maximum hash ring size.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> Minimum hash ring size.final booleanprivate voidmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeMaximumRingSize(com.google.protobuf.UInt64Value value) Maximum hash ring size.mergeMinimumRingSize(com.google.protobuf.UInt64Value value) Minimum hash ring size.The hash function used to hash hosts onto the ketama ring.setHashFunctionValue(int value) The hash function used to hash hosts onto the ketama ring.setMaximumRingSize(com.google.protobuf.UInt64Value value) Maximum hash ring size.setMaximumRingSize(com.google.protobuf.UInt64Value.Builder builderForValue) Maximum hash ring size.setMinimumRingSize(com.google.protobuf.UInt64Value value) Minimum hash ring size.setMinimumRingSize(com.google.protobuf.UInt64Value.Builder builderForValue) Minimum hash ring size.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
bitField0_
private int bitField0_ -
minimumRingSize_
private com.google.protobuf.UInt64Value minimumRingSize_ -
minimumRingSizeBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> minimumRingSizeBuilder_ -
hashFunction_
private int hashFunction_ -
maximumRingSize_
private com.google.protobuf.UInt64Value maximumRingSize_ -
maximumRingSizeBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> maximumRingSizeBuilder_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Cluster.RingHashLbConfig.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Cluster.RingHashLbConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Cluster.RingHashLbConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Cluster.RingHashLbConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Cluster.RingHashLbConfig.Builder>
-
mergeFrom
public Cluster.RingHashLbConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Cluster.RingHashLbConfig.Builder>- Throws:
IOException
-
hasMinimumRingSize
public 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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 1 [(.validate.rules) = { ... }- Specified by:
hasMinimumRingSizein interfaceCluster.RingHashLbConfigOrBuilder- Returns:
- Whether the minimumRingSize field is set.
-
getMinimumRingSize
public 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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 1 [(.validate.rules) = { ... }- Specified by:
getMinimumRingSizein interfaceCluster.RingHashLbConfigOrBuilder- Returns:
- The minimumRingSize.
-
setMinimumRingSize
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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 1 [(.validate.rules) = { ... } -
setMinimumRingSize
public Cluster.RingHashLbConfig.Builder setMinimumRingSize(com.google.protobuf.UInt64Value.Builder builderForValue) 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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 1 [(.validate.rules) = { ... } -
mergeMinimumRingSize
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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 1 [(.validate.rules) = { ... } -
clearMinimumRingSize
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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 1 [(.validate.rules) = { ... } -
getMinimumRingSizeBuilder
public com.google.protobuf.UInt64Value.Builder getMinimumRingSizeBuilder()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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 1 [(.validate.rules) = { ... } -
getMinimumRingSizeOrBuilder
public 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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 1 [(.validate.rules) = { ... }- Specified by:
getMinimumRingSizeOrBuilderin interfaceCluster.RingHashLbConfigOrBuilder
-
internalGetMinimumRingSizeFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> internalGetMinimumRingSizeFieldBuilder()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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.maximum_ring_size>`.
.google.protobuf.UInt64Value minimum_ring_size = 1 [(.validate.rules) = { ... } -
getHashFunctionValue
public int getHashFunctionValue()The hash function used to hash hosts onto the ketama ring. The value defaults to :ref:`XX_HASH<envoy_v3_api_enum_value_config.cluster.v3.Cluster.RingHashLbConfig.HashFunction.XX_HASH>`.
.envoy.config.cluster.v3.Cluster.RingHashLbConfig.HashFunction hash_function = 3 [(.validate.rules) = { ... }- Specified by:
getHashFunctionValuein interfaceCluster.RingHashLbConfigOrBuilder- Returns:
- The enum numeric value on the wire for hashFunction.
-
setHashFunctionValue
The hash function used to hash hosts onto the ketama ring. The value defaults to :ref:`XX_HASH<envoy_v3_api_enum_value_config.cluster.v3.Cluster.RingHashLbConfig.HashFunction.XX_HASH>`.
.envoy.config.cluster.v3.Cluster.RingHashLbConfig.HashFunction hash_function = 3 [(.validate.rules) = { ... }- Parameters:
value- The enum numeric value on the wire for hashFunction to set.- Returns:
- This builder for chaining.
- Throws:
IllegalArgumentException- if UNRECOGNIZED is provided.
-
getHashFunction
The hash function used to hash hosts onto the ketama ring. The value defaults to :ref:`XX_HASH<envoy_v3_api_enum_value_config.cluster.v3.Cluster.RingHashLbConfig.HashFunction.XX_HASH>`.
.envoy.config.cluster.v3.Cluster.RingHashLbConfig.HashFunction hash_function = 3 [(.validate.rules) = { ... }- Specified by:
getHashFunctionin interfaceCluster.RingHashLbConfigOrBuilder- Returns:
- The hashFunction.
-
setHashFunction
public Cluster.RingHashLbConfig.Builder setHashFunction(Cluster.RingHashLbConfig.HashFunction value) The hash function used to hash hosts onto the ketama ring. The value defaults to :ref:`XX_HASH<envoy_v3_api_enum_value_config.cluster.v3.Cluster.RingHashLbConfig.HashFunction.XX_HASH>`.
.envoy.config.cluster.v3.Cluster.RingHashLbConfig.HashFunction hash_function = 3 [(.validate.rules) = { ... }- Parameters:
value- The hashFunction to set.- Returns:
- This builder for chaining.
-
clearHashFunction
The hash function used to hash hosts onto the ketama ring. The value defaults to :ref:`XX_HASH<envoy_v3_api_enum_value_config.cluster.v3.Cluster.RingHashLbConfig.HashFunction.XX_HASH>`.
.envoy.config.cluster.v3.Cluster.RingHashLbConfig.HashFunction hash_function = 3 [(.validate.rules) = { ... }- Returns:
- This builder for chaining.
-
hasMaximumRingSize
public 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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 4 [(.validate.rules) = { ... }- Specified by:
hasMaximumRingSizein interfaceCluster.RingHashLbConfigOrBuilder- Returns:
- Whether the maximumRingSize field is set.
-
getMaximumRingSize
public 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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 4 [(.validate.rules) = { ... }- Specified by:
getMaximumRingSizein interfaceCluster.RingHashLbConfigOrBuilder- Returns:
- The maximumRingSize.
-
setMaximumRingSize
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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 4 [(.validate.rules) = { ... } -
setMaximumRingSize
public Cluster.RingHashLbConfig.Builder setMaximumRingSize(com.google.protobuf.UInt64Value.Builder builderForValue) 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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 4 [(.validate.rules) = { ... } -
mergeMaximumRingSize
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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 4 [(.validate.rules) = { ... } -
clearMaximumRingSize
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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 4 [(.validate.rules) = { ... } -
getMaximumRingSizeBuilder
public com.google.protobuf.UInt64Value.Builder getMaximumRingSizeBuilder()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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 4 [(.validate.rules) = { ... } -
getMaximumRingSizeOrBuilder
public 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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 4 [(.validate.rules) = { ... }- Specified by:
getMaximumRingSizeOrBuilderin interfaceCluster.RingHashLbConfigOrBuilder
-
internalGetMaximumRingSizeFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> internalGetMaximumRingSizeFieldBuilder()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_v3_api_field_config.cluster.v3.Cluster.RingHashLbConfig.minimum_ring_size>`.
.google.protobuf.UInt64Value maximum_ring_size = 4 [(.validate.rules) = { ... }
-