类 VirtualServiceOuterClass.HTTPRetry

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
istio.networking.v1alpha3.VirtualServiceOuterClass.HTTPRetry
所有已实现的接口:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VirtualServiceOuterClass.HTTPRetryOrBuilder, Serializable
封闭类:
VirtualServiceOuterClass

public static final class VirtualServiceOuterClass.HTTPRetry extends com.google.protobuf.GeneratedMessageV3 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
另请参阅:
  • 字段详细资料

    • ATTEMPTS_FIELD_NUMBER

      public static final int ATTEMPTS_FIELD_NUMBER
      另请参阅:
    • PER_TRY_TIMEOUT_FIELD_NUMBER

      public static final int PER_TRY_TIMEOUT_FIELD_NUMBER
      另请参阅:
    • RETRY_ON_FIELD_NUMBER

      public static final int RETRY_ON_FIELD_NUMBER
      另请参阅:
    • RETRY_REMOTE_LOCALITIES_FIELD_NUMBER

      public static final int RETRY_REMOTE_LOCALITIES_FIELD_NUMBER
      另请参阅:
  • 方法详细资料

    • newInstance

      protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
      覆盖:
      newInstance 在类中 com.google.protobuf.GeneratedMessageV3
    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      指定者:
      internalGetFieldAccessorTable 在类中 com.google.protobuf.GeneratedMessageV3
    • 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.
    • 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.
    • 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
    • getRetryOn

      public 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.
    • 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.
    • 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
    • isInitialized

      public final boolean isInitialized()
      指定者:
      isInitialized 在接口中 com.google.protobuf.MessageLiteOrBuilder
      覆盖:
      isInitialized 在类中 com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      指定者:
      writeTo 在接口中 com.google.protobuf.MessageLite
      覆盖:
      writeTo 在类中 com.google.protobuf.GeneratedMessageV3
      抛出:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      指定者:
      getSerializedSize 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getSerializedSize 在类中 com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      指定者:
      equals 在接口中 com.google.protobuf.Message
      覆盖:
      equals 在类中 com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      指定者:
      hashCode 在接口中 com.google.protobuf.Message
      覆盖:
      hashCode 在类中 com.google.protobuf.AbstractMessage
    • parseFrom

      public static VirtualServiceOuterClass.HTTPRetry parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VirtualServiceOuterClass.HTTPRetry parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VirtualServiceOuterClass.HTTPRetry parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VirtualServiceOuterClass.HTTPRetry parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VirtualServiceOuterClass.HTTPRetry parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VirtualServiceOuterClass.HTTPRetry parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      抛出:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static VirtualServiceOuterClass.HTTPRetry parseFrom(InputStream input) throws IOException
      抛出:
      IOException
    • parseFrom

      public static VirtualServiceOuterClass.HTTPRetry parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • parseDelimitedFrom

      public static VirtualServiceOuterClass.HTTPRetry parseDelimitedFrom(InputStream input) throws IOException
      抛出:
      IOException
    • parseDelimitedFrom

      public static VirtualServiceOuterClass.HTTPRetry parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • parseFrom

      public static VirtualServiceOuterClass.HTTPRetry parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      抛出:
      IOException
    • parseFrom

      public static VirtualServiceOuterClass.HTTPRetry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      抛出:
      IOException
    • newBuilderForType

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

      public static VirtualServiceOuterClass.HTTPRetry.Builder newBuilder()
    • newBuilder

    • toBuilder

      指定者:
      toBuilder 在接口中 com.google.protobuf.Message
      指定者:
      toBuilder 在接口中 com.google.protobuf.MessageLite
    • newBuilderForType

      protected VirtualServiceOuterClass.HTTPRetry.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      指定者:
      newBuilderForType 在类中 com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static VirtualServiceOuterClass.HTTPRetry getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPRetry> parser()
    • getParserForType

      public com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPRetry> getParserForType()
      指定者:
      getParserForType 在接口中 com.google.protobuf.Message
      指定者:
      getParserForType 在接口中 com.google.protobuf.MessageLite
      覆盖:
      getParserForType 在类中 com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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