Package io.envoyproxy.envoy.api.v2
Class Cluster.CommonLbConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Cluster.CommonLbConfig.Builder>
-
- io.envoyproxy.envoy.api.v2.Cluster.CommonLbConfig.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cluster.CommonLbConfigOrBuilder,Cloneable
- Enclosing class:
- Cluster.CommonLbConfig
public static final class Cluster.CommonLbConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Cluster.CommonLbConfig.Builder> implements Cluster.CommonLbConfigOrBuilder
Common configuration for all load balancer implementations. [#next-free-field: 8]
Protobuf typeenvoy.api.v2.Cluster.CommonLbConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Cluster.CommonLbConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Cluster.CommonLbConfigbuild()Cluster.CommonLbConfigbuildPartial()Cluster.CommonLbConfig.Builderclear()Cluster.CommonLbConfig.BuilderclearCloseConnectionsOnHostSetChange()If set to `true`, the cluster manager will drain all existing connections to upstream hosts whenever hosts are added or removed from the cluster.Cluster.CommonLbConfig.BuilderclearConsistentHashingLbConfig()Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)Cluster.CommonLbConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Cluster.CommonLbConfig.BuilderclearHealthyPanicThreshold()Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`.Cluster.CommonLbConfig.BuilderclearIgnoreNewHostsUntilFirstHc()If set to true, Envoy will not consider new hosts when computing load balancing weights until they have been health checked for the first time.Cluster.CommonLbConfig.BuilderclearLocalityConfigSpecifier()Cluster.CommonLbConfig.BuilderclearLocalityWeightedLbConfig().envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;Cluster.CommonLbConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Cluster.CommonLbConfig.BuilderclearUpdateMergeWindow()If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires.Cluster.CommonLbConfig.BuilderclearZoneAwareLbConfig().envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;Cluster.CommonLbConfig.Builderclone()booleangetCloseConnectionsOnHostSetChange()If set to `true`, the cluster manager will drain all existing connections to upstream hosts whenever hosts are added or removed from the cluster.Cluster.CommonLbConfig.ConsistentHashingLbConfiggetConsistentHashingLbConfig()Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)Cluster.CommonLbConfig.ConsistentHashingLbConfig.BuildergetConsistentHashingLbConfigBuilder()Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)Cluster.CommonLbConfig.ConsistentHashingLbConfigOrBuildergetConsistentHashingLbConfigOrBuilder()Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)Cluster.CommonLbConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()PercentgetHealthyPanicThreshold()Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`.Percent.BuildergetHealthyPanicThresholdBuilder()Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`.PercentOrBuildergetHealthyPanicThresholdOrBuilder()Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`.booleangetIgnoreNewHostsUntilFirstHc()If set to true, Envoy will not consider new hosts when computing load balancing weights until they have been health checked for the first time.Cluster.CommonLbConfig.LocalityConfigSpecifierCasegetLocalityConfigSpecifierCase()Cluster.CommonLbConfig.LocalityWeightedLbConfiggetLocalityWeightedLbConfig().envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;Cluster.CommonLbConfig.LocalityWeightedLbConfig.BuildergetLocalityWeightedLbConfigBuilder().envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;Cluster.CommonLbConfig.LocalityWeightedLbConfigOrBuildergetLocalityWeightedLbConfigOrBuilder().envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;com.google.protobuf.DurationgetUpdateMergeWindow()If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires.com.google.protobuf.Duration.BuildergetUpdateMergeWindowBuilder()If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires.com.google.protobuf.DurationOrBuildergetUpdateMergeWindowOrBuilder()If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires.Cluster.CommonLbConfig.ZoneAwareLbConfiggetZoneAwareLbConfig().envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;Cluster.CommonLbConfig.ZoneAwareLbConfig.BuildergetZoneAwareLbConfigBuilder().envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;Cluster.CommonLbConfig.ZoneAwareLbConfigOrBuildergetZoneAwareLbConfigOrBuilder().envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;booleanhasConsistentHashingLbConfig()Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)booleanhasHealthyPanicThreshold()Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`.booleanhasLocalityWeightedLbConfig().envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;booleanhasUpdateMergeWindow()If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires.booleanhasZoneAwareLbConfig().envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Cluster.CommonLbConfig.BuildermergeConsistentHashingLbConfig(Cluster.CommonLbConfig.ConsistentHashingLbConfig value)Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)Cluster.CommonLbConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Cluster.CommonLbConfig.BuildermergeFrom(com.google.protobuf.Message other)Cluster.CommonLbConfig.BuildermergeFrom(Cluster.CommonLbConfig other)Cluster.CommonLbConfig.BuildermergeHealthyPanicThreshold(Percent value)Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`.Cluster.CommonLbConfig.BuildermergeLocalityWeightedLbConfig(Cluster.CommonLbConfig.LocalityWeightedLbConfig value).envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;Cluster.CommonLbConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Cluster.CommonLbConfig.BuildermergeUpdateMergeWindow(com.google.protobuf.Duration value)If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires.Cluster.CommonLbConfig.BuildermergeZoneAwareLbConfig(Cluster.CommonLbConfig.ZoneAwareLbConfig value).envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;Cluster.CommonLbConfig.BuildersetCloseConnectionsOnHostSetChange(boolean value)If set to `true`, the cluster manager will drain all existing connections to upstream hosts whenever hosts are added or removed from the cluster.Cluster.CommonLbConfig.BuildersetConsistentHashingLbConfig(Cluster.CommonLbConfig.ConsistentHashingLbConfig value)Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)Cluster.CommonLbConfig.BuildersetConsistentHashingLbConfig(Cluster.CommonLbConfig.ConsistentHashingLbConfig.Builder builderForValue)Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)Cluster.CommonLbConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Cluster.CommonLbConfig.BuildersetHealthyPanicThreshold(Percent value)Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`.Cluster.CommonLbConfig.BuildersetHealthyPanicThreshold(Percent.Builder builderForValue)Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`.Cluster.CommonLbConfig.BuildersetIgnoreNewHostsUntilFirstHc(boolean value)If set to true, Envoy will not consider new hosts when computing load balancing weights until they have been health checked for the first time.Cluster.CommonLbConfig.BuildersetLocalityWeightedLbConfig(Cluster.CommonLbConfig.LocalityWeightedLbConfig value).envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;Cluster.CommonLbConfig.BuildersetLocalityWeightedLbConfig(Cluster.CommonLbConfig.LocalityWeightedLbConfig.Builder builderForValue).envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;Cluster.CommonLbConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Cluster.CommonLbConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Cluster.CommonLbConfig.BuildersetUpdateMergeWindow(com.google.protobuf.Duration value)If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires.Cluster.CommonLbConfig.BuildersetUpdateMergeWindow(com.google.protobuf.Duration.Builder builderForValue)If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires.Cluster.CommonLbConfig.BuildersetZoneAwareLbConfig(Cluster.CommonLbConfig.ZoneAwareLbConfig value).envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;Cluster.CommonLbConfig.BuildersetZoneAwareLbConfig(Cluster.CommonLbConfig.ZoneAwareLbConfig.Builder builderForValue).envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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
-
-
-
-
Method Detail
-
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<Cluster.CommonLbConfig.Builder>
-
clear
public Cluster.CommonLbConfig.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<Cluster.CommonLbConfig.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<Cluster.CommonLbConfig.Builder>
-
getDefaultInstanceForType
public Cluster.CommonLbConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Cluster.CommonLbConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Cluster.CommonLbConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Cluster.CommonLbConfig.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<Cluster.CommonLbConfig.Builder>
-
setField
public Cluster.CommonLbConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Cluster.CommonLbConfig.Builder>
-
clearField
public Cluster.CommonLbConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Cluster.CommonLbConfig.Builder>
-
clearOneof
public Cluster.CommonLbConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Cluster.CommonLbConfig.Builder>
-
setRepeatedField
public Cluster.CommonLbConfig.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<Cluster.CommonLbConfig.Builder>
-
addRepeatedField
public Cluster.CommonLbConfig.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<Cluster.CommonLbConfig.Builder>
-
mergeFrom
public Cluster.CommonLbConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Cluster.CommonLbConfig.Builder>
-
mergeFrom
public Cluster.CommonLbConfig.Builder mergeFrom(Cluster.CommonLbConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Cluster.CommonLbConfig.Builder>
-
mergeFrom
public Cluster.CommonLbConfig.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.CommonLbConfig.Builder>- Throws:
IOException
-
getLocalityConfigSpecifierCase
public Cluster.CommonLbConfig.LocalityConfigSpecifierCase getLocalityConfigSpecifierCase()
- Specified by:
getLocalityConfigSpecifierCasein interfaceCluster.CommonLbConfigOrBuilder
-
clearLocalityConfigSpecifier
public Cluster.CommonLbConfig.Builder clearLocalityConfigSpecifier()
-
hasHealthyPanicThreshold
public boolean hasHealthyPanicThreshold()
Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`. If not specified, the default is 50%. To disable panic mode, set to 0%. .. note:: The specified percent will be truncated to the nearest 1%.
.envoy.type.Percent healthy_panic_threshold = 1;- Specified by:
hasHealthyPanicThresholdin interfaceCluster.CommonLbConfigOrBuilder- Returns:
- Whether the healthyPanicThreshold field is set.
-
getHealthyPanicThreshold
public Percent getHealthyPanicThreshold()
Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`. If not specified, the default is 50%. To disable panic mode, set to 0%. .. note:: The specified percent will be truncated to the nearest 1%.
.envoy.type.Percent healthy_panic_threshold = 1;- Specified by:
getHealthyPanicThresholdin interfaceCluster.CommonLbConfigOrBuilder- Returns:
- The healthyPanicThreshold.
-
setHealthyPanicThreshold
public Cluster.CommonLbConfig.Builder setHealthyPanicThreshold(Percent value)
Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`. If not specified, the default is 50%. To disable panic mode, set to 0%. .. note:: The specified percent will be truncated to the nearest 1%.
.envoy.type.Percent healthy_panic_threshold = 1;
-
setHealthyPanicThreshold
public Cluster.CommonLbConfig.Builder setHealthyPanicThreshold(Percent.Builder builderForValue)
Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`. If not specified, the default is 50%. To disable panic mode, set to 0%. .. note:: The specified percent will be truncated to the nearest 1%.
.envoy.type.Percent healthy_panic_threshold = 1;
-
mergeHealthyPanicThreshold
public Cluster.CommonLbConfig.Builder mergeHealthyPanicThreshold(Percent value)
Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`. If not specified, the default is 50%. To disable panic mode, set to 0%. .. note:: The specified percent will be truncated to the nearest 1%.
.envoy.type.Percent healthy_panic_threshold = 1;
-
clearHealthyPanicThreshold
public Cluster.CommonLbConfig.Builder clearHealthyPanicThreshold()
Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`. If not specified, the default is 50%. To disable panic mode, set to 0%. .. note:: The specified percent will be truncated to the nearest 1%.
.envoy.type.Percent healthy_panic_threshold = 1;
-
getHealthyPanicThresholdBuilder
public Percent.Builder getHealthyPanicThresholdBuilder()
Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`. If not specified, the default is 50%. To disable panic mode, set to 0%. .. note:: The specified percent will be truncated to the nearest 1%.
.envoy.type.Percent healthy_panic_threshold = 1;
-
getHealthyPanicThresholdOrBuilder
public PercentOrBuilder getHealthyPanicThresholdOrBuilder()
Configures the :ref:`healthy panic threshold <arch_overview_load_balancing_panic_threshold>`. If not specified, the default is 50%. To disable panic mode, set to 0%. .. note:: The specified percent will be truncated to the nearest 1%.
.envoy.type.Percent healthy_panic_threshold = 1;- Specified by:
getHealthyPanicThresholdOrBuilderin interfaceCluster.CommonLbConfigOrBuilder
-
hasZoneAwareLbConfig
public boolean hasZoneAwareLbConfig()
.envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;- Specified by:
hasZoneAwareLbConfigin interfaceCluster.CommonLbConfigOrBuilder- Returns:
- Whether the zoneAwareLbConfig field is set.
-
getZoneAwareLbConfig
public Cluster.CommonLbConfig.ZoneAwareLbConfig getZoneAwareLbConfig()
.envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;- Specified by:
getZoneAwareLbConfigin interfaceCluster.CommonLbConfigOrBuilder- Returns:
- The zoneAwareLbConfig.
-
setZoneAwareLbConfig
public Cluster.CommonLbConfig.Builder setZoneAwareLbConfig(Cluster.CommonLbConfig.ZoneAwareLbConfig value)
.envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;
-
setZoneAwareLbConfig
public Cluster.CommonLbConfig.Builder setZoneAwareLbConfig(Cluster.CommonLbConfig.ZoneAwareLbConfig.Builder builderForValue)
.envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;
-
mergeZoneAwareLbConfig
public Cluster.CommonLbConfig.Builder mergeZoneAwareLbConfig(Cluster.CommonLbConfig.ZoneAwareLbConfig value)
.envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;
-
clearZoneAwareLbConfig
public Cluster.CommonLbConfig.Builder clearZoneAwareLbConfig()
.envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;
-
getZoneAwareLbConfigBuilder
public Cluster.CommonLbConfig.ZoneAwareLbConfig.Builder getZoneAwareLbConfigBuilder()
.envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;
-
getZoneAwareLbConfigOrBuilder
public Cluster.CommonLbConfig.ZoneAwareLbConfigOrBuilder getZoneAwareLbConfigOrBuilder()
.envoy.api.v2.Cluster.CommonLbConfig.ZoneAwareLbConfig zone_aware_lb_config = 2;- Specified by:
getZoneAwareLbConfigOrBuilderin interfaceCluster.CommonLbConfigOrBuilder
-
hasLocalityWeightedLbConfig
public boolean hasLocalityWeightedLbConfig()
.envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;- Specified by:
hasLocalityWeightedLbConfigin interfaceCluster.CommonLbConfigOrBuilder- Returns:
- Whether the localityWeightedLbConfig field is set.
-
getLocalityWeightedLbConfig
public Cluster.CommonLbConfig.LocalityWeightedLbConfig getLocalityWeightedLbConfig()
.envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;- Specified by:
getLocalityWeightedLbConfigin interfaceCluster.CommonLbConfigOrBuilder- Returns:
- The localityWeightedLbConfig.
-
setLocalityWeightedLbConfig
public Cluster.CommonLbConfig.Builder setLocalityWeightedLbConfig(Cluster.CommonLbConfig.LocalityWeightedLbConfig value)
.envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;
-
setLocalityWeightedLbConfig
public Cluster.CommonLbConfig.Builder setLocalityWeightedLbConfig(Cluster.CommonLbConfig.LocalityWeightedLbConfig.Builder builderForValue)
.envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;
-
mergeLocalityWeightedLbConfig
public Cluster.CommonLbConfig.Builder mergeLocalityWeightedLbConfig(Cluster.CommonLbConfig.LocalityWeightedLbConfig value)
.envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;
-
clearLocalityWeightedLbConfig
public Cluster.CommonLbConfig.Builder clearLocalityWeightedLbConfig()
.envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;
-
getLocalityWeightedLbConfigBuilder
public Cluster.CommonLbConfig.LocalityWeightedLbConfig.Builder getLocalityWeightedLbConfigBuilder()
.envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;
-
getLocalityWeightedLbConfigOrBuilder
public Cluster.CommonLbConfig.LocalityWeightedLbConfigOrBuilder getLocalityWeightedLbConfigOrBuilder()
.envoy.api.v2.Cluster.CommonLbConfig.LocalityWeightedLbConfig locality_weighted_lb_config = 3;- Specified by:
getLocalityWeightedLbConfigOrBuilderin interfaceCluster.CommonLbConfigOrBuilder
-
hasUpdateMergeWindow
public boolean hasUpdateMergeWindow()
If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires. The start of the duration is when the first update happens. This is useful for big clusters, with potentially noisy deploys that might trigger excessive CPU usage due to a constant stream of healthcheck state changes or metadata updates. The first set of updates to be seen apply immediately (e.g.: a new cluster). Please always keep in mind that the use of sandbox technologies may change this behavior. If this is not set, we default to a merge window of 1000ms. To disable it, set the merge window to 0. Note: merging does not apply to cluster membership changes (e.g.: adds/removes); this is because merging those updates isn't currently safe. See https://github.com/envoyproxy/envoy/pull/3941.
.google.protobuf.Duration update_merge_window = 4;- Specified by:
hasUpdateMergeWindowin interfaceCluster.CommonLbConfigOrBuilder- Returns:
- Whether the updateMergeWindow field is set.
-
getUpdateMergeWindow
public com.google.protobuf.Duration getUpdateMergeWindow()
If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires. The start of the duration is when the first update happens. This is useful for big clusters, with potentially noisy deploys that might trigger excessive CPU usage due to a constant stream of healthcheck state changes or metadata updates. The first set of updates to be seen apply immediately (e.g.: a new cluster). Please always keep in mind that the use of sandbox technologies may change this behavior. If this is not set, we default to a merge window of 1000ms. To disable it, set the merge window to 0. Note: merging does not apply to cluster membership changes (e.g.: adds/removes); this is because merging those updates isn't currently safe. See https://github.com/envoyproxy/envoy/pull/3941.
.google.protobuf.Duration update_merge_window = 4;- Specified by:
getUpdateMergeWindowin interfaceCluster.CommonLbConfigOrBuilder- Returns:
- The updateMergeWindow.
-
setUpdateMergeWindow
public Cluster.CommonLbConfig.Builder setUpdateMergeWindow(com.google.protobuf.Duration value)
If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires. The start of the duration is when the first update happens. This is useful for big clusters, with potentially noisy deploys that might trigger excessive CPU usage due to a constant stream of healthcheck state changes or metadata updates. The first set of updates to be seen apply immediately (e.g.: a new cluster). Please always keep in mind that the use of sandbox technologies may change this behavior. If this is not set, we default to a merge window of 1000ms. To disable it, set the merge window to 0. Note: merging does not apply to cluster membership changes (e.g.: adds/removes); this is because merging those updates isn't currently safe. See https://github.com/envoyproxy/envoy/pull/3941.
.google.protobuf.Duration update_merge_window = 4;
-
setUpdateMergeWindow
public Cluster.CommonLbConfig.Builder setUpdateMergeWindow(com.google.protobuf.Duration.Builder builderForValue)
If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires. The start of the duration is when the first update happens. This is useful for big clusters, with potentially noisy deploys that might trigger excessive CPU usage due to a constant stream of healthcheck state changes or metadata updates. The first set of updates to be seen apply immediately (e.g.: a new cluster). Please always keep in mind that the use of sandbox technologies may change this behavior. If this is not set, we default to a merge window of 1000ms. To disable it, set the merge window to 0. Note: merging does not apply to cluster membership changes (e.g.: adds/removes); this is because merging those updates isn't currently safe. See https://github.com/envoyproxy/envoy/pull/3941.
.google.protobuf.Duration update_merge_window = 4;
-
mergeUpdateMergeWindow
public Cluster.CommonLbConfig.Builder mergeUpdateMergeWindow(com.google.protobuf.Duration value)
If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires. The start of the duration is when the first update happens. This is useful for big clusters, with potentially noisy deploys that might trigger excessive CPU usage due to a constant stream of healthcheck state changes or metadata updates. The first set of updates to be seen apply immediately (e.g.: a new cluster). Please always keep in mind that the use of sandbox technologies may change this behavior. If this is not set, we default to a merge window of 1000ms. To disable it, set the merge window to 0. Note: merging does not apply to cluster membership changes (e.g.: adds/removes); this is because merging those updates isn't currently safe. See https://github.com/envoyproxy/envoy/pull/3941.
.google.protobuf.Duration update_merge_window = 4;
-
clearUpdateMergeWindow
public Cluster.CommonLbConfig.Builder clearUpdateMergeWindow()
If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires. The start of the duration is when the first update happens. This is useful for big clusters, with potentially noisy deploys that might trigger excessive CPU usage due to a constant stream of healthcheck state changes or metadata updates. The first set of updates to be seen apply immediately (e.g.: a new cluster). Please always keep in mind that the use of sandbox technologies may change this behavior. If this is not set, we default to a merge window of 1000ms. To disable it, set the merge window to 0. Note: merging does not apply to cluster membership changes (e.g.: adds/removes); this is because merging those updates isn't currently safe. See https://github.com/envoyproxy/envoy/pull/3941.
.google.protobuf.Duration update_merge_window = 4;
-
getUpdateMergeWindowBuilder
public com.google.protobuf.Duration.Builder getUpdateMergeWindowBuilder()
If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires. The start of the duration is when the first update happens. This is useful for big clusters, with potentially noisy deploys that might trigger excessive CPU usage due to a constant stream of healthcheck state changes or metadata updates. The first set of updates to be seen apply immediately (e.g.: a new cluster). Please always keep in mind that the use of sandbox technologies may change this behavior. If this is not set, we default to a merge window of 1000ms. To disable it, set the merge window to 0. Note: merging does not apply to cluster membership changes (e.g.: adds/removes); this is because merging those updates isn't currently safe. See https://github.com/envoyproxy/envoy/pull/3941.
.google.protobuf.Duration update_merge_window = 4;
-
getUpdateMergeWindowOrBuilder
public com.google.protobuf.DurationOrBuilder getUpdateMergeWindowOrBuilder()
If set, all health check/weight/metadata updates that happen within this duration will be merged and delivered in one shot when the duration expires. The start of the duration is when the first update happens. This is useful for big clusters, with potentially noisy deploys that might trigger excessive CPU usage due to a constant stream of healthcheck state changes or metadata updates. The first set of updates to be seen apply immediately (e.g.: a new cluster). Please always keep in mind that the use of sandbox technologies may change this behavior. If this is not set, we default to a merge window of 1000ms. To disable it, set the merge window to 0. Note: merging does not apply to cluster membership changes (e.g.: adds/removes); this is because merging those updates isn't currently safe. See https://github.com/envoyproxy/envoy/pull/3941.
.google.protobuf.Duration update_merge_window = 4;- Specified by:
getUpdateMergeWindowOrBuilderin interfaceCluster.CommonLbConfigOrBuilder
-
getIgnoreNewHostsUntilFirstHc
public boolean getIgnoreNewHostsUntilFirstHc()
If set to true, Envoy will not consider new hosts when computing load balancing weights until they have been health checked for the first time. This will have no effect unless active health checking is also configured. Ignoring a host means that for any load balancing calculations that adjust weights based on the ratio of eligible hosts and total hosts (priority spillover, locality weighting and panic mode) Envoy will exclude these hosts in the denominator. For example, with hosts in two priorities P0 and P1, where P0 looks like {healthy, unhealthy (new), unhealthy (new)} and where P1 looks like {healthy, healthy} all traffic will still hit P0, as 1 / (3 - 2) = 1. Enabling this will allow scaling up the number of hosts for a given cluster without entering panic mode or triggering priority spillover, assuming the hosts pass the first health check. If panic mode is triggered, new hosts are still eligible for traffic; they simply do not contribute to the calculation when deciding whether panic mode is enabled or not.bool ignore_new_hosts_until_first_hc = 5;- Specified by:
getIgnoreNewHostsUntilFirstHcin interfaceCluster.CommonLbConfigOrBuilder- Returns:
- The ignoreNewHostsUntilFirstHc.
-
setIgnoreNewHostsUntilFirstHc
public Cluster.CommonLbConfig.Builder setIgnoreNewHostsUntilFirstHc(boolean value)
If set to true, Envoy will not consider new hosts when computing load balancing weights until they have been health checked for the first time. This will have no effect unless active health checking is also configured. Ignoring a host means that for any load balancing calculations that adjust weights based on the ratio of eligible hosts and total hosts (priority spillover, locality weighting and panic mode) Envoy will exclude these hosts in the denominator. For example, with hosts in two priorities P0 and P1, where P0 looks like {healthy, unhealthy (new), unhealthy (new)} and where P1 looks like {healthy, healthy} all traffic will still hit P0, as 1 / (3 - 2) = 1. Enabling this will allow scaling up the number of hosts for a given cluster without entering panic mode or triggering priority spillover, assuming the hosts pass the first health check. If panic mode is triggered, new hosts are still eligible for traffic; they simply do not contribute to the calculation when deciding whether panic mode is enabled or not.bool ignore_new_hosts_until_first_hc = 5;- Parameters:
value- The ignoreNewHostsUntilFirstHc to set.- Returns:
- This builder for chaining.
-
clearIgnoreNewHostsUntilFirstHc
public Cluster.CommonLbConfig.Builder clearIgnoreNewHostsUntilFirstHc()
If set to true, Envoy will not consider new hosts when computing load balancing weights until they have been health checked for the first time. This will have no effect unless active health checking is also configured. Ignoring a host means that for any load balancing calculations that adjust weights based on the ratio of eligible hosts and total hosts (priority spillover, locality weighting and panic mode) Envoy will exclude these hosts in the denominator. For example, with hosts in two priorities P0 and P1, where P0 looks like {healthy, unhealthy (new), unhealthy (new)} and where P1 looks like {healthy, healthy} all traffic will still hit P0, as 1 / (3 - 2) = 1. Enabling this will allow scaling up the number of hosts for a given cluster without entering panic mode or triggering priority spillover, assuming the hosts pass the first health check. If panic mode is triggered, new hosts are still eligible for traffic; they simply do not contribute to the calculation when deciding whether panic mode is enabled or not.bool ignore_new_hosts_until_first_hc = 5;- Returns:
- This builder for chaining.
-
getCloseConnectionsOnHostSetChange
public boolean getCloseConnectionsOnHostSetChange()
If set to `true`, the cluster manager will drain all existing connections to upstream hosts whenever hosts are added or removed from the cluster.
bool close_connections_on_host_set_change = 6;- Specified by:
getCloseConnectionsOnHostSetChangein interfaceCluster.CommonLbConfigOrBuilder- Returns:
- The closeConnectionsOnHostSetChange.
-
setCloseConnectionsOnHostSetChange
public Cluster.CommonLbConfig.Builder setCloseConnectionsOnHostSetChange(boolean value)
If set to `true`, the cluster manager will drain all existing connections to upstream hosts whenever hosts are added or removed from the cluster.
bool close_connections_on_host_set_change = 6;- Parameters:
value- The closeConnectionsOnHostSetChange to set.- Returns:
- This builder for chaining.
-
clearCloseConnectionsOnHostSetChange
public Cluster.CommonLbConfig.Builder clearCloseConnectionsOnHostSetChange()
If set to `true`, the cluster manager will drain all existing connections to upstream hosts whenever hosts are added or removed from the cluster.
bool close_connections_on_host_set_change = 6;- Returns:
- This builder for chaining.
-
hasConsistentHashingLbConfig
public boolean hasConsistentHashingLbConfig()
Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)
.envoy.api.v2.Cluster.CommonLbConfig.ConsistentHashingLbConfig consistent_hashing_lb_config = 7;- Specified by:
hasConsistentHashingLbConfigin interfaceCluster.CommonLbConfigOrBuilder- Returns:
- Whether the consistentHashingLbConfig field is set.
-
getConsistentHashingLbConfig
public Cluster.CommonLbConfig.ConsistentHashingLbConfig getConsistentHashingLbConfig()
Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)
.envoy.api.v2.Cluster.CommonLbConfig.ConsistentHashingLbConfig consistent_hashing_lb_config = 7;- Specified by:
getConsistentHashingLbConfigin interfaceCluster.CommonLbConfigOrBuilder- Returns:
- The consistentHashingLbConfig.
-
setConsistentHashingLbConfig
public Cluster.CommonLbConfig.Builder setConsistentHashingLbConfig(Cluster.CommonLbConfig.ConsistentHashingLbConfig value)
Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)
.envoy.api.v2.Cluster.CommonLbConfig.ConsistentHashingLbConfig consistent_hashing_lb_config = 7;
-
setConsistentHashingLbConfig
public Cluster.CommonLbConfig.Builder setConsistentHashingLbConfig(Cluster.CommonLbConfig.ConsistentHashingLbConfig.Builder builderForValue)
Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)
.envoy.api.v2.Cluster.CommonLbConfig.ConsistentHashingLbConfig consistent_hashing_lb_config = 7;
-
mergeConsistentHashingLbConfig
public Cluster.CommonLbConfig.Builder mergeConsistentHashingLbConfig(Cluster.CommonLbConfig.ConsistentHashingLbConfig value)
Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)
.envoy.api.v2.Cluster.CommonLbConfig.ConsistentHashingLbConfig consistent_hashing_lb_config = 7;
-
clearConsistentHashingLbConfig
public Cluster.CommonLbConfig.Builder clearConsistentHashingLbConfig()
Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)
.envoy.api.v2.Cluster.CommonLbConfig.ConsistentHashingLbConfig consistent_hashing_lb_config = 7;
-
getConsistentHashingLbConfigBuilder
public Cluster.CommonLbConfig.ConsistentHashingLbConfig.Builder getConsistentHashingLbConfigBuilder()
Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)
.envoy.api.v2.Cluster.CommonLbConfig.ConsistentHashingLbConfig consistent_hashing_lb_config = 7;
-
getConsistentHashingLbConfigOrBuilder
public Cluster.CommonLbConfig.ConsistentHashingLbConfigOrBuilder getConsistentHashingLbConfigOrBuilder()
Common Configuration for all consistent hashing load balancers (MaglevLb, RingHashLb, etc.)
.envoy.api.v2.Cluster.CommonLbConfig.ConsistentHashingLbConfig consistent_hashing_lb_config = 7;- Specified by:
getConsistentHashingLbConfigOrBuilderin interfaceCluster.CommonLbConfigOrBuilder
-
setUnknownFields
public final Cluster.CommonLbConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Cluster.CommonLbConfig.Builder>
-
mergeUnknownFields
public final Cluster.CommonLbConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Cluster.CommonLbConfig.Builder>
-
-