类 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,java.io.Serializable
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 typeistio.networking.v1alpha3.HTTPRetry- 另请参阅:
- 序列化表格
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classVirtualServiceOuterClass.HTTPRetry.BuilderDescribes the retry policy to use when a HTTP request fails.-
从类继承的嵌套类/接口 com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
字段概要
字段 修饰符和类型 字段 说明 private intattempts_static intATTEMPTS_FIELD_NUMBERprivate static VirtualServiceOuterClass.HTTPRetryDEFAULT_INSTANCEprivate bytememoizedIsInitializedprivate static com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPRetry>PARSERstatic intPER_TRY_TIMEOUT_FIELD_NUMBERprivate com.google.protobuf.DurationperTryTimeout_static intRETRY_ON_FIELD_NUMBERstatic intRETRY_REMOTE_LOCALITIES_FIELD_NUMBERprivate java.lang.ObjectretryOn_private com.google.protobuf.BoolValueretryRemoteLocalities_private static longserialVersionUID
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanequals(java.lang.Object obj)intgetAttempts()Number of retries to be allowed for a given request.static VirtualServiceOuterClass.HTTPRetrygetDefaultInstance()VirtualServiceOuterClass.HTTPRetrygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPRetry>getParserForType()com.google.protobuf.DurationgetPerTryTimeout()Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms.com.google.protobuf.DurationOrBuildergetPerTryTimeoutOrBuilder()Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms.java.lang.StringgetRetryOn()Specifies the conditions under which retry takes place.com.google.protobuf.ByteStringgetRetryOnBytes()Specifies the conditions under which retry takes place.com.google.protobuf.BoolValuegetRetryRemoteLocalities()Flag to specify whether the retries should retry to other localities.com.google.protobuf.BoolValueOrBuildergetRetryRemoteLocalitiesOrBuilder()Flag to specify whether the retries should retry to other localities.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()inthashCode()booleanhasPerTryTimeout()Timeout per retry attempt for a given request. format: 1h/1m/1s/1ms.booleanhasRetryRemoteLocalities()Flag to specify whether the retries should retry to other localities.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static VirtualServiceOuterClass.HTTPRetry.BuildernewBuilder()static VirtualServiceOuterClass.HTTPRetry.BuildernewBuilder(VirtualServiceOuterClass.HTTPRetry prototype)VirtualServiceOuterClass.HTTPRetry.BuildernewBuilderForType()protected VirtualServiceOuterClass.HTTPRetry.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static VirtualServiceOuterClass.HTTPRetryparseDelimitedFrom(java.io.InputStream input)static VirtualServiceOuterClass.HTTPRetryparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.HTTPRetryparseFrom(byte[] data)static VirtualServiceOuterClass.HTTPRetryparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.HTTPRetryparseFrom(com.google.protobuf.ByteString data)static VirtualServiceOuterClass.HTTPRetryparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.HTTPRetryparseFrom(com.google.protobuf.CodedInputStream input)static VirtualServiceOuterClass.HTTPRetryparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.HTTPRetryparseFrom(java.io.InputStream input)static VirtualServiceOuterClass.HTTPRetryparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static VirtualServiceOuterClass.HTTPRetryparseFrom(java.nio.ByteBuffer data)static VirtualServiceOuterClass.HTTPRetryparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPRetry>parser()VirtualServiceOuterClass.HTTPRetry.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
从类继承的方法 com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
从类继承的方法 com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
-
-
-
字段详细资料
-
serialVersionUID
private static final long serialVersionUID
- 另请参阅:
- 常量字段值
-
ATTEMPTS_FIELD_NUMBER
public static final int ATTEMPTS_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
attempts_
private int attempts_
-
PER_TRY_TIMEOUT_FIELD_NUMBER
public static final int PER_TRY_TIMEOUT_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
perTryTimeout_
private com.google.protobuf.Duration perTryTimeout_
-
RETRY_ON_FIELD_NUMBER
public static final int RETRY_ON_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
retryOn_
private volatile java.lang.Object retryOn_
-
RETRY_REMOTE_LOCALITIES_FIELD_NUMBER
public static final int RETRY_REMOTE_LOCALITIES_FIELD_NUMBER
- 另请参阅:
- 常量字段值
-
retryRemoteLocalities_
private com.google.protobuf.BoolValue retryRemoteLocalities_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final VirtualServiceOuterClass.HTTPRetry DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<VirtualServiceOuterClass.HTTPRetry> PARSER
-
-
方法详细资料
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- 覆盖:
newInstance在类中com.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- 指定者:
getUnknownFields在接口中com.google.protobuf.MessageOrBuilder- 覆盖:
getUnknownFields在类中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;
-
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.
-
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;
-
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 java.io.IOException- 指定者:
writeTo在接口中com.google.protobuf.MessageLite- 覆盖:
writeTo在类中com.google.protobuf.GeneratedMessageV3- 抛出:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- 指定者:
getSerializedSize在接口中com.google.protobuf.MessageLite- 覆盖:
getSerializedSize在类中com.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.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(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- 抛出:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VirtualServiceOuterClass.HTTPRetry parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static VirtualServiceOuterClass.HTTPRetry parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseDelimitedFrom
public static VirtualServiceOuterClass.HTTPRetry parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseDelimitedFrom
public static VirtualServiceOuterClass.HTTPRetry parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static VirtualServiceOuterClass.HTTPRetry parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- 抛出:
java.io.IOException
-
parseFrom
public static VirtualServiceOuterClass.HTTPRetry parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- 抛出:
java.io.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
public static VirtualServiceOuterClass.HTTPRetry.Builder newBuilder(VirtualServiceOuterClass.HTTPRetry prototype)
-
toBuilder
public VirtualServiceOuterClass.HTTPRetry.Builder 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
-
-