类 VirtualServiceOuterClass.HTTPRetry.Builder

  • 所有已实现的接口:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VirtualServiceOuterClass.HTTPRetryOrBuilder, java.lang.Cloneable
    封闭类:
    VirtualServiceOuterClass.HTTPRetry

    public static final class VirtualServiceOuterClass.HTTPRetry.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPRetry.Builder>
    implements VirtualServiceOuterClass.HTTPRetryOrBuilder
     Describes the retry policy to use when a HTTP request fails. For
     example, the following rule sets the maximum number of retries to 3 when
     calling ratings:v1 service, with a 2s timeout per retry attempt.
     {{<tabset category-name="example">}}
     {{<tab name="v1alpha3" category-value="v1alpha3">}}
     ```yaml
     apiVersion: networking.istio.io/v1alpha3
     kind: VirtualService
     metadata:
       name: ratings-route
     spec:
       hosts:
       - ratings.prod.svc.cluster.local
       http:
       - route:
         - destination:
             host: ratings.prod.svc.cluster.local
             subset: v1
         retries:
           attempts: 3
           perTryTimeout: 2s
           retryOn: gateway-error,connect-failure,refused-stream
     ```
     {{</tab>}}
     {{<tab name="v1beta1" category-value="v1beta1">}}
     ```yaml
     apiVersion: networking.istio.io/v1beta1
     kind: VirtualService
     metadata:
       name: ratings-route
     spec:
       hosts:
       - ratings.prod.svc.cluster.local
       http:
       - route:
         - destination:
             host: ratings.prod.svc.cluster.local
             subset: v1
         retries:
           attempts: 3
           perTryTimeout: 2s
           retryOn: gateway-error,connect-failure,refused-stream
     ```
     {{</tab>}}
     {{</tabset>}}
     
    Protobuf type istio.networking.v1alpha3.HTTPRetry
    • 字段详细资料

      • bitField0_

        private int bitField0_
      • attempts_

        private int attempts_
      • perTryTimeout_

        private com.google.protobuf.Duration perTryTimeout_
      • perTryTimeoutBuilder_

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> perTryTimeoutBuilder_
      • retryOn_

        private java.lang.Object retryOn_
      • retryRemoteLocalities_

        private com.google.protobuf.BoolValue retryRemoteLocalities_
      • retryRemoteLocalitiesBuilder_

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.BoolValue,​com.google.protobuf.BoolValue.Builder,​com.google.protobuf.BoolValueOrBuilder> retryRemoteLocalitiesBuilder_
    • 构造器详细资料

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
    • 方法详细资料

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        指定者:
        internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPRetry.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        指定者:
        getDescriptorForType 在接口中 com.google.protobuf.Message.Builder
        指定者:
        getDescriptorForType 在接口中 com.google.protobuf.MessageOrBuilder
        覆盖:
        getDescriptorForType 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPRetry.Builder>
      • getDefaultInstanceForType

        public VirtualServiceOuterClass.HTTPRetry getDefaultInstanceForType()
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageLiteOrBuilder
        指定者:
        getDefaultInstanceForType 在接口中 com.google.protobuf.MessageOrBuilder
      • build

        public VirtualServiceOuterClass.HTTPRetry build()
        指定者:
        build 在接口中 com.google.protobuf.Message.Builder
        指定者:
        build 在接口中 com.google.protobuf.MessageLite.Builder
      • buildPartial

        public VirtualServiceOuterClass.HTTPRetry buildPartial()
        指定者:
        buildPartial 在接口中 com.google.protobuf.Message.Builder
        指定者:
        buildPartial 在接口中 com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        指定者:
        isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
        覆盖:
        isInitialized 在类中 com.google.protobuf.GeneratedMessageV3.Builder<VirtualServiceOuterClass.HTTPRetry.Builder>
      • mergeFrom

        public VirtualServiceOuterClass.HTTPRetry.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                                    com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                             throws java.io.IOException
        指定者:
        mergeFrom 在接口中 com.google.protobuf.Message.Builder
        指定者:
        mergeFrom 在接口中 com.google.protobuf.MessageLite.Builder
        覆盖:
        mergeFrom 在类中 com.google.protobuf.AbstractMessage.Builder<VirtualServiceOuterClass.HTTPRetry.Builder>
        抛出:
        java.io.IOException
      • getAttempts

        public int getAttempts()
         Number of retries to be allowed for a given request. The interval
         between retries will be determined automatically (25ms+). When request 
         `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute) 
         or `per_try_timeout` is configured, the actual number of retries attempted also depends on
         the specified request `timeout` and `per_try_timeout` values.
         
        int32 attempts = 1 [(.google.api.field_behavior) = REQUIRED];
        指定者:
        getAttempts 在接口中 VirtualServiceOuterClass.HTTPRetryOrBuilder
        返回:
        The attempts.
      • setAttempts

        public VirtualServiceOuterClass.HTTPRetry.Builder setAttempts​(int value)
         Number of retries to be allowed for a given request. The interval
         between retries will be determined automatically (25ms+). When request 
         `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute) 
         or `per_try_timeout` is configured, the actual number of retries attempted also depends on
         the specified request `timeout` and `per_try_timeout` values.
         
        int32 attempts = 1 [(.google.api.field_behavior) = REQUIRED];
        参数:
        value - The attempts to set.
        返回:
        This builder for chaining.
      • clearAttempts

        public VirtualServiceOuterClass.HTTPRetry.Builder clearAttempts()
         Number of retries to be allowed for a given request. The interval
         between retries will be determined automatically (25ms+). When request 
         `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute) 
         or `per_try_timeout` is configured, the actual number of retries attempted also depends on
         the specified request `timeout` and `per_try_timeout` values.
         
        int32 attempts = 1 [(.google.api.field_behavior) = REQUIRED];
        返回:
        This builder for chaining.
      • hasPerTryTimeout

        public boolean hasPerTryTimeout()
         Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms. MUST BE >=1ms.
         Default is same value as request 
         `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute), 
         which means no timeout.
         
        .google.protobuf.Duration per_try_timeout = 2;
        指定者:
        hasPerTryTimeout 在接口中 VirtualServiceOuterClass.HTTPRetryOrBuilder
        返回:
        Whether the perTryTimeout field is set.
      • getPerTryTimeout

        public com.google.protobuf.Duration getPerTryTimeout()
         Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms. MUST BE >=1ms.
         Default is same value as request 
         `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute), 
         which means no timeout.
         
        .google.protobuf.Duration per_try_timeout = 2;
        指定者:
        getPerTryTimeout 在接口中 VirtualServiceOuterClass.HTTPRetryOrBuilder
        返回:
        The perTryTimeout.
      • setPerTryTimeout

        public VirtualServiceOuterClass.HTTPRetry.Builder setPerTryTimeout​(com.google.protobuf.Duration value)
         Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms. MUST BE >=1ms.
         Default is same value as request 
         `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute), 
         which means no timeout.
         
        .google.protobuf.Duration per_try_timeout = 2;
      • setPerTryTimeout

        public VirtualServiceOuterClass.HTTPRetry.Builder setPerTryTimeout​(com.google.protobuf.Duration.Builder builderForValue)
         Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms. MUST BE >=1ms.
         Default is same value as request 
         `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute), 
         which means no timeout.
         
        .google.protobuf.Duration per_try_timeout = 2;
      • mergePerTryTimeout

        public VirtualServiceOuterClass.HTTPRetry.Builder mergePerTryTimeout​(com.google.protobuf.Duration value)
         Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms. MUST BE >=1ms.
         Default is same value as request 
         `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute), 
         which means no timeout.
         
        .google.protobuf.Duration per_try_timeout = 2;
      • clearPerTryTimeout

        public VirtualServiceOuterClass.HTTPRetry.Builder clearPerTryTimeout()
         Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms. MUST BE >=1ms.
         Default is same value as request 
         `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute), 
         which means no timeout.
         
        .google.protobuf.Duration per_try_timeout = 2;
      • getPerTryTimeoutBuilder

        public com.google.protobuf.Duration.Builder getPerTryTimeoutBuilder()
         Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms. MUST BE >=1ms.
         Default is same value as request 
         `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute), 
         which means no timeout.
         
        .google.protobuf.Duration per_try_timeout = 2;
      • getPerTryTimeoutOrBuilder

        public com.google.protobuf.DurationOrBuilder getPerTryTimeoutOrBuilder()
         Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms. MUST BE >=1ms.
         Default is same value as request 
         `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute), 
         which means no timeout.
         
        .google.protobuf.Duration per_try_timeout = 2;
        指定者:
        getPerTryTimeoutOrBuilder 在接口中 VirtualServiceOuterClass.HTTPRetryOrBuilder
      • getPerTryTimeoutFieldBuilder

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.Duration,​com.google.protobuf.Duration.Builder,​com.google.protobuf.DurationOrBuilder> getPerTryTimeoutFieldBuilder()
         Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms. MUST BE >=1ms.
         Default is same value as request 
         `timeout` of the [HTTP route](https://istio.io/docs/reference/config/networking/virtual-service/#HTTPRoute), 
         which means no timeout.
         
        .google.protobuf.Duration per_try_timeout = 2;
      • getRetryOn

        public java.lang.String getRetryOn()
         Specifies the conditions under which retry takes place.
         One or more policies can be specified using a ‘,’ delimited list.
         See the [retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on)
         and [gRPC retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on) for more details.
         
        string retry_on = 3;
        指定者:
        getRetryOn 在接口中 VirtualServiceOuterClass.HTTPRetryOrBuilder
        返回:
        The retryOn.
      • getRetryOnBytes

        public com.google.protobuf.ByteString getRetryOnBytes()
         Specifies the conditions under which retry takes place.
         One or more policies can be specified using a ‘,’ delimited list.
         See the [retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on)
         and [gRPC retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on) for more details.
         
        string retry_on = 3;
        指定者:
        getRetryOnBytes 在接口中 VirtualServiceOuterClass.HTTPRetryOrBuilder
        返回:
        The bytes for retryOn.
      • setRetryOn

        public VirtualServiceOuterClass.HTTPRetry.Builder setRetryOn​(java.lang.String value)
         Specifies the conditions under which retry takes place.
         One or more policies can be specified using a ‘,’ delimited list.
         See the [retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on)
         and [gRPC retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on) for more details.
         
        string retry_on = 3;
        参数:
        value - The retryOn to set.
        返回:
        This builder for chaining.
      • clearRetryOn

        public VirtualServiceOuterClass.HTTPRetry.Builder clearRetryOn()
         Specifies the conditions under which retry takes place.
         One or more policies can be specified using a ‘,’ delimited list.
         See the [retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on)
         and [gRPC retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on) for more details.
         
        string retry_on = 3;
        返回:
        This builder for chaining.
      • setRetryOnBytes

        public VirtualServiceOuterClass.HTTPRetry.Builder setRetryOnBytes​(com.google.protobuf.ByteString value)
         Specifies the conditions under which retry takes place.
         One or more policies can be specified using a ‘,’ delimited list.
         See the [retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-on)
         and [gRPC retry policies](https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/router_filter#x-envoy-retry-grpc-on) for more details.
         
        string retry_on = 3;
        参数:
        value - The bytes for retryOn to set.
        返回:
        This builder for chaining.
      • hasRetryRemoteLocalities

        public boolean hasRetryRemoteLocalities()
         Flag to specify whether the retries should retry to other localities.
         See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.
         
        .google.protobuf.BoolValue retry_remote_localities = 4;
        指定者:
        hasRetryRemoteLocalities 在接口中 VirtualServiceOuterClass.HTTPRetryOrBuilder
        返回:
        Whether the retryRemoteLocalities field is set.
      • getRetryRemoteLocalities

        public com.google.protobuf.BoolValue getRetryRemoteLocalities()
         Flag to specify whether the retries should retry to other localities.
         See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.
         
        .google.protobuf.BoolValue retry_remote_localities = 4;
        指定者:
        getRetryRemoteLocalities 在接口中 VirtualServiceOuterClass.HTTPRetryOrBuilder
        返回:
        The retryRemoteLocalities.
      • setRetryRemoteLocalities

        public VirtualServiceOuterClass.HTTPRetry.Builder setRetryRemoteLocalities​(com.google.protobuf.BoolValue value)
         Flag to specify whether the retries should retry to other localities.
         See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.
         
        .google.protobuf.BoolValue retry_remote_localities = 4;
      • setRetryRemoteLocalities

        public VirtualServiceOuterClass.HTTPRetry.Builder setRetryRemoteLocalities​(com.google.protobuf.BoolValue.Builder builderForValue)
         Flag to specify whether the retries should retry to other localities.
         See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.
         
        .google.protobuf.BoolValue retry_remote_localities = 4;
      • mergeRetryRemoteLocalities

        public VirtualServiceOuterClass.HTTPRetry.Builder mergeRetryRemoteLocalities​(com.google.protobuf.BoolValue value)
         Flag to specify whether the retries should retry to other localities.
         See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.
         
        .google.protobuf.BoolValue retry_remote_localities = 4;
      • clearRetryRemoteLocalities

        public VirtualServiceOuterClass.HTTPRetry.Builder clearRetryRemoteLocalities()
         Flag to specify whether the retries should retry to other localities.
         See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.
         
        .google.protobuf.BoolValue retry_remote_localities = 4;
      • getRetryRemoteLocalitiesBuilder

        public com.google.protobuf.BoolValue.Builder getRetryRemoteLocalitiesBuilder()
         Flag to specify whether the retries should retry to other localities.
         See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.
         
        .google.protobuf.BoolValue retry_remote_localities = 4;
      • getRetryRemoteLocalitiesOrBuilder

        public com.google.protobuf.BoolValueOrBuilder getRetryRemoteLocalitiesOrBuilder()
         Flag to specify whether the retries should retry to other localities.
         See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.
         
        .google.protobuf.BoolValue retry_remote_localities = 4;
        指定者:
        getRetryRemoteLocalitiesOrBuilder 在接口中 VirtualServiceOuterClass.HTTPRetryOrBuilder
      • getRetryRemoteLocalitiesFieldBuilder

        private com.google.protobuf.SingleFieldBuilderV3<com.google.protobuf.BoolValue,​com.google.protobuf.BoolValue.Builder,​com.google.protobuf.BoolValueOrBuilder> getRetryRemoteLocalitiesFieldBuilder()
         Flag to specify whether the retries should retry to other localities.
         See the [retry plugin configuration](https://www.envoyproxy.io/docs/envoy/latest/intro/arch_overview/http/http_connection_management#retry-plugin-configuration) for more details.
         
        .google.protobuf.BoolValue retry_remote_localities = 4;