Class CircuitBreakers.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CircuitBreakersOrBuilder, java.lang.Cloneable
    Enclosing class:
    CircuitBreakers

    public static final class CircuitBreakers.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Builder>
    implements CircuitBreakersOrBuilder
     :ref:`Circuit breaking<arch_overview_circuit_break>` settings can be
     specified individually for each defined priority.
     
    Protobuf type envoy.config.cluster.v3.CircuitBreakers
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Builder>
      • clear

        public CircuitBreakers.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Builder>
      • getDefaultInstanceForType

        public CircuitBreakers getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CircuitBreakers build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CircuitBreakers buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • buildPartialRepeatedFields

        private void buildPartialRepeatedFields​(CircuitBreakers result)
      • mergeFrom

        public CircuitBreakers.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CircuitBreakers.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CircuitBreakers.Builder>
      • mergeFrom

        public CircuitBreakers.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                 com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                          throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CircuitBreakers.Builder>
        Throws:
        java.io.IOException
      • ensureThresholdsIsMutable

        private void ensureThresholdsIsMutable()
      • getThresholdsList

        public java.util.List<CircuitBreakers.Thresholds> getThresholdsList()
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
        Specified by:
        getThresholdsList in interface CircuitBreakersOrBuilder
      • getThresholdsCount

        public int getThresholdsCount()
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
        Specified by:
        getThresholdsCount in interface CircuitBreakersOrBuilder
      • getThresholds

        public CircuitBreakers.Thresholds getThresholds​(int index)
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
        Specified by:
        getThresholds in interface CircuitBreakersOrBuilder
      • setThresholds

        public CircuitBreakers.Builder setThresholds​(int index,
                                                     CircuitBreakers.Thresholds value)
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • setThresholds

        public CircuitBreakers.Builder setThresholds​(int index,
                                                     CircuitBreakers.Thresholds.Builder builderForValue)
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • addThresholds

        public CircuitBreakers.Builder addThresholds​(CircuitBreakers.Thresholds value)
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • addThresholds

        public CircuitBreakers.Builder addThresholds​(int index,
                                                     CircuitBreakers.Thresholds value)
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • addThresholds

        public CircuitBreakers.Builder addThresholds​(CircuitBreakers.Thresholds.Builder builderForValue)
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • addThresholds

        public CircuitBreakers.Builder addThresholds​(int index,
                                                     CircuitBreakers.Thresholds.Builder builderForValue)
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • addAllThresholds

        public CircuitBreakers.Builder addAllThresholds​(java.lang.Iterable<? extends CircuitBreakers.Thresholds> values)
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • clearThresholds

        public CircuitBreakers.Builder clearThresholds()
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • removeThresholds

        public CircuitBreakers.Builder removeThresholds​(int index)
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • getThresholdsBuilder

        public CircuitBreakers.Thresholds.Builder getThresholdsBuilder​(int index)
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • getThresholdsOrBuilder

        public CircuitBreakers.ThresholdsOrBuilder getThresholdsOrBuilder​(int index)
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
        Specified by:
        getThresholdsOrBuilder in interface CircuitBreakersOrBuilder
      • getThresholdsOrBuilderList

        public java.util.List<? extends CircuitBreakers.ThresholdsOrBuilder> getThresholdsOrBuilderList()
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
        Specified by:
        getThresholdsOrBuilderList in interface CircuitBreakersOrBuilder
      • addThresholdsBuilder

        public CircuitBreakers.Thresholds.Builder addThresholdsBuilder()
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • addThresholdsBuilder

        public CircuitBreakers.Thresholds.Builder addThresholdsBuilder​(int index)
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • getThresholdsBuilderList

        public java.util.List<CircuitBreakers.Thresholds.Builder> getThresholdsBuilderList()
         If multiple :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no Thresholds is defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`, the default values
         are used.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds thresholds = 1;
      • ensurePerHostThresholdsIsMutable

        private void ensurePerHostThresholdsIsMutable()
      • getPerHostThresholdsList

        public java.util.List<CircuitBreakers.Thresholds> getPerHostThresholdsList()
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
        Specified by:
        getPerHostThresholdsList in interface CircuitBreakersOrBuilder
      • getPerHostThresholdsCount

        public int getPerHostThresholdsCount()
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
        Specified by:
        getPerHostThresholdsCount in interface CircuitBreakersOrBuilder
      • getPerHostThresholds

        public CircuitBreakers.Thresholds getPerHostThresholds​(int index)
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
        Specified by:
        getPerHostThresholds in interface CircuitBreakersOrBuilder
      • setPerHostThresholds

        public CircuitBreakers.Builder setPerHostThresholds​(int index,
                                                            CircuitBreakers.Thresholds value)
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
      • setPerHostThresholds

        public CircuitBreakers.Builder setPerHostThresholds​(int index,
                                                            CircuitBreakers.Thresholds.Builder builderForValue)
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
      • addPerHostThresholds

        public CircuitBreakers.Builder addPerHostThresholds​(CircuitBreakers.Thresholds value)
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
      • addPerHostThresholds

        public CircuitBreakers.Builder addPerHostThresholds​(int index,
                                                            CircuitBreakers.Thresholds value)
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
      • addPerHostThresholds

        public CircuitBreakers.Builder addPerHostThresholds​(CircuitBreakers.Thresholds.Builder builderForValue)
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
      • addPerHostThresholds

        public CircuitBreakers.Builder addPerHostThresholds​(int index,
                                                            CircuitBreakers.Thresholds.Builder builderForValue)
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
      • addAllPerHostThresholds

        public CircuitBreakers.Builder addAllPerHostThresholds​(java.lang.Iterable<? extends CircuitBreakers.Thresholds> values)
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
      • clearPerHostThresholds

        public CircuitBreakers.Builder clearPerHostThresholds()
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
      • removePerHostThresholds

        public CircuitBreakers.Builder removePerHostThresholds​(int index)
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
      • getPerHostThresholdsBuilder

        public CircuitBreakers.Thresholds.Builder getPerHostThresholdsBuilder​(int index)
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
      • getPerHostThresholdsOrBuilder

        public CircuitBreakers.ThresholdsOrBuilder getPerHostThresholdsOrBuilder​(int index)
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
        Specified by:
        getPerHostThresholdsOrBuilder in interface CircuitBreakersOrBuilder
      • getPerHostThresholdsOrBuilderList

        public java.util.List<? extends CircuitBreakers.ThresholdsOrBuilder> getPerHostThresholdsOrBuilderList()
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
        Specified by:
        getPerHostThresholdsOrBuilderList in interface CircuitBreakersOrBuilder
      • addPerHostThresholdsBuilder

        public CircuitBreakers.Thresholds.Builder addPerHostThresholdsBuilder()
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
      • addPerHostThresholdsBuilder

        public CircuitBreakers.Thresholds.Builder addPerHostThresholdsBuilder​(int index)
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;
      • getPerHostThresholdsBuilderList

        public java.util.List<CircuitBreakers.Thresholds.Builder> getPerHostThresholdsBuilderList()
         Optional per-host limits which apply to each individual host in a cluster.
        
         .. note::
         currently only the :ref:`max_connections
         <envoy_v3_api_field_config.cluster.v3.CircuitBreakers.Thresholds.max_connections>` field is supported for per-host limits.
        
         If multiple per-host :ref:`Thresholds<envoy_v3_api_msg_config.cluster.v3.CircuitBreakers.Thresholds>`
         are defined with the same :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the first one in the list is used. If no per-host Thresholds are defined for a given
         :ref:`RoutingPriority<envoy_v3_api_enum_config.core.v3.RoutingPriority>`,
         the cluster will not have per-host limits.
         
        repeated .envoy.config.cluster.v3.CircuitBreakers.Thresholds per_host_thresholds = 2;