Class Maglev.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
io.envoyproxy.envoy.extensions.load_balancing_policies.maglev.v3.Maglev.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,MaglevOrBuilder,Cloneable
- Enclosing class:
- Maglev
public static final class Maglev.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
implements MaglevOrBuilder
This configuration allows the built-in Maglev LB policy to be configured via the LB policy extension point. See the :ref:`load balancing architecture overview <arch_overview_load_balancing_types>` and :ref:`Maglev<arch_overview_load_balancing_types_maglev>` for more information.Protobuf type
envoy.extensions.load_balancing_policies.maglev.v3.Maglev-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Common configuration for hashing-based load balancing policies.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Enable locality weighted load balancing for maglev lb explicitly.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The table size for Maglev hashing.clone()Common configuration for hashing-based load balancing policies.Common configuration for hashing-based load balancing policies.Common configuration for hashing-based load balancing policies.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorEnable locality weighted load balancing for maglev lb explicitly.Enable locality weighted load balancing for maglev lb explicitly.Enable locality weighted load balancing for maglev lb explicitly.com.google.protobuf.UInt64ValueThe table size for Maglev hashing.com.google.protobuf.UInt64Value.BuilderThe table size for Maglev hashing.com.google.protobuf.UInt64ValueOrBuilderThe table size for Maglev hashing.booleanCommon configuration for hashing-based load balancing policies.booleanEnable locality weighted load balancing for maglev lb explicitly.booleanThe table size for Maglev hashing.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanCommon configuration for hashing-based load balancing policies.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Enable locality weighted load balancing for maglev lb explicitly.mergeTableSize(com.google.protobuf.UInt64Value value) The table size for Maglev hashing.final Maglev.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Common configuration for hashing-based load balancing policies.setConsistentHashingLbConfig(ConsistentHashingLbConfig.Builder builderForValue) Common configuration for hashing-based load balancing policies.Enable locality weighted load balancing for maglev lb explicitly.Enable locality weighted load balancing for maglev lb explicitly.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTableSize(com.google.protobuf.UInt64Value value) The table size for Maglev hashing.setTableSize(com.google.protobuf.UInt64Value.Builder builderForValue) The table size for Maglev hashing.final Maglev.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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 java.lang.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
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.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.GeneratedMessageV3.Builder<Maglev.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
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
setField
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
setRepeatedField
public Maglev.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
addRepeatedField
public Maglev.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Maglev.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
mergeFrom
public Maglev.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<Maglev.Builder>- Throws:
IOException
-
hasTableSize
public boolean hasTableSize()The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... }- Specified by:
hasTableSizein interfaceMaglevOrBuilder- Returns:
- Whether the tableSize field is set.
-
getTableSize
public com.google.protobuf.UInt64Value getTableSize()The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... }- Specified by:
getTableSizein interfaceMaglevOrBuilder- Returns:
- The tableSize.
-
setTableSize
The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... } -
setTableSize
The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... } -
mergeTableSize
The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... } -
clearTableSize
The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... } -
getTableSizeBuilder
public com.google.protobuf.UInt64Value.Builder getTableSizeBuilder()The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... } -
getTableSizeOrBuilder
public com.google.protobuf.UInt64ValueOrBuilder getTableSizeOrBuilder()The table size for Maglev hashing. Maglev aims for "minimal disruption" rather than an absolute guarantee. Minimal disruption means that when the set of upstream hosts change, a connection will likely be sent to the same upstream as it was before. Increasing the table size reduces the amount of disruption. The table size must be prime number limited to 5000011. If it is not specified, the default is 65537.
.google.protobuf.UInt64Value table_size = 1 [(.validate.rules) = { ... }- Specified by:
getTableSizeOrBuilderin interfaceMaglevOrBuilder
-
hasConsistentHashingLbConfig
public boolean hasConsistentHashingLbConfig()Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2;- Specified by:
hasConsistentHashingLbConfigin interfaceMaglevOrBuilder- Returns:
- Whether the consistentHashingLbConfig field is set.
-
getConsistentHashingLbConfig
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2;- Specified by:
getConsistentHashingLbConfigin interfaceMaglevOrBuilder- Returns:
- The consistentHashingLbConfig.
-
setConsistentHashingLbConfig
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2; -
setConsistentHashingLbConfig
public Maglev.Builder setConsistentHashingLbConfig(ConsistentHashingLbConfig.Builder builderForValue) Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2; -
mergeConsistentHashingLbConfig
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2; -
clearConsistentHashingLbConfig
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2; -
getConsistentHashingLbConfigBuilder
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2; -
getConsistentHashingLbConfigOrBuilder
Common configuration for hashing-based load balancing policies.
.envoy.extensions.load_balancing_policies.common.v3.ConsistentHashingLbConfig consistent_hashing_lb_config = 2;- Specified by:
getConsistentHashingLbConfigOrBuilderin interfaceMaglevOrBuilder
-
hasLocalityWeightedLbConfig
public boolean hasLocalityWeightedLbConfig()Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;- Specified by:
hasLocalityWeightedLbConfigin interfaceMaglevOrBuilder- Returns:
- Whether the localityWeightedLbConfig field is set.
-
getLocalityWeightedLbConfig
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;- Specified by:
getLocalityWeightedLbConfigin interfaceMaglevOrBuilder- Returns:
- The localityWeightedLbConfig.
-
setLocalityWeightedLbConfig
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3; -
setLocalityWeightedLbConfig
public Maglev.Builder setLocalityWeightedLbConfig(LocalityLbConfig.LocalityWeightedLbConfig.Builder builderForValue) Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3; -
mergeLocalityWeightedLbConfig
public Maglev.Builder mergeLocalityWeightedLbConfig(LocalityLbConfig.LocalityWeightedLbConfig value) Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3; -
clearLocalityWeightedLbConfig
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3; -
getLocalityWeightedLbConfigBuilder
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3; -
getLocalityWeightedLbConfigOrBuilder
Enable locality weighted load balancing for maglev lb explicitly.
.envoy.extensions.load_balancing_policies.common.v3.LocalityLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;- Specified by:
getLocalityWeightedLbConfigOrBuilderin interfaceMaglevOrBuilder
-
setUnknownFields
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-
mergeUnknownFields
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Maglev.Builder>
-