接口 VirtualServiceOuterClass.HTTPRetryOrBuilder

所有超级接口:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
所有已知实现类:
VirtualServiceOuterClass.HTTPRetry, VirtualServiceOuterClass.HTTPRetry.Builder
封闭类:
VirtualServiceOuterClass

public static interface VirtualServiceOuterClass.HTTPRetryOrBuilder extends com.google.protobuf.MessageOrBuilder
  • 方法概要

    修饰符和类型
    方法
    说明
    int
    Number of retries to be allowed for a given request.
    com.google.protobuf.Duration
    Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms.
    com.google.protobuf.DurationOrBuilder
    Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms.
    Specifies the conditions under which retry takes place.
    com.google.protobuf.ByteString
    Specifies the conditions under which retry takes place.
    com.google.protobuf.BoolValue
    Flag to specify whether the retries should retry to other localities.
    com.google.protobuf.BoolValueOrBuilder
    Flag to specify whether the retries should retry to other localities.
    boolean
    Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms.
    boolean
    Flag to specify whether the retries should retry to other localities.

    从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    从接口继承的方法 com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 方法详细资料

    • getAttempts

      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];
      返回:
      The attempts.
    • hasPerTryTimeout

      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;
      返回:
      Whether the perTryTimeout field is set.
    • getPerTryTimeout

      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;
      返回:
      The perTryTimeout.
    • getPerTryTimeoutOrBuilder

      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;
    • getRetryOn

      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;
      返回:
      The retryOn.
    • getRetryOnBytes

      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;
      返回:
      The bytes for retryOn.
    • hasRetryRemoteLocalities

      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;
      返回:
      Whether the retryRemoteLocalities field is set.
    • getRetryRemoteLocalities

      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;
      返回:
      The retryRemoteLocalities.
    • getRetryRemoteLocalitiesOrBuilder

      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;