接口 VirtualServiceOuterClass.HTTPRetryOrBuilder
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
public static interface VirtualServiceOuterClass.HTTPRetryOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
方法概要
修饰符和类型方法说明intNumber of retries to be allowed for a given request.com.google.protobuf.DurationTimeout per retry attempt for a given request. format: 1h/1m/1s/1ms.com.google.protobuf.DurationOrBuilderTimeout per retry attempt for a given request. format: 1h/1m/1s/1ms.Specifies the conditions under which retry takes place.com.google.protobuf.ByteStringSpecifies the conditions under which retry takes place.com.google.protobuf.BoolValueFlag to specify whether the retries should retry to other localities.com.google.protobuf.BoolValueOrBuilderFlag to specify whether the retries should retry to other localities.booleanTimeout per retry attempt for a given request. format: 1h/1m/1s/1ms.booleanFlag 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;
-