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 int
private int
private com.google.protobuf.UInt64Value
private com.google.protobuf.SingleFieldBuilder
<com.google.protobuf.UInt64Value, com.google.protobuf.UInt64Value.Builder, com.google.protobuf.UInt64ValueOrBuilder> private com.google.protobuf.UInt64Value
private 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 void
clear()
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.Descriptor
com.google.protobuf.Descriptors.Descriptor
The hash function used to hash hosts onto the ketama ring.int
The hash function used to hash hosts onto the ketama ring.com.google.protobuf.UInt64Value
Maximum hash ring size.com.google.protobuf.UInt64Value.Builder
Maximum hash ring size.com.google.protobuf.UInt64ValueOrBuilder
Maximum hash ring size.com.google.protobuf.UInt64Value
Minimum hash ring size.com.google.protobuf.UInt64Value.Builder
Minimum hash ring size.com.google.protobuf.UInt64ValueOrBuilder
Minimum hash ring size.boolean
Maximum hash ring size.boolean
Minimum hash ring size.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
private 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 boolean
private void
mergeFrom
(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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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, minimumRingSizeBuilder_com.google.protobuf.UInt64ValueOrBuilder> -
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, maximumRingSizeBuilder_com.google.protobuf.UInt64ValueOrBuilder>
-
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<Cluster.RingHashLbConfig.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<Cluster.RingHashLbConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<Cluster.RingHashLbConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Cluster.RingHashLbConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasMinimumRingSize
in 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:
getMinimumRingSize
in 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:
getMinimumRingSizeOrBuilder
in interfaceCluster.RingHashLbConfigOrBuilder
-
internalGetMinimumRingSizeFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value,com.google.protobuf.UInt64Value.Builder, internalGetMinimumRingSizeFieldBuilder()com.google.protobuf.UInt64ValueOrBuilder> 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:
getHashFunctionValue
in 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.
-
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:
getHashFunction
in 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:
hasMaximumRingSize
in 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:
getMaximumRingSize
in 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:
getMaximumRingSizeOrBuilder
in interfaceCluster.RingHashLbConfigOrBuilder
-
internalGetMaximumRingSizeFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt64Value,com.google.protobuf.UInt64Value.Builder, internalGetMaximumRingSizeFieldBuilder()com.google.protobuf.UInt64ValueOrBuilder> 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) = { ... }
-