Package io.envoyproxy.envoy.api.v2.route
Class RetryPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
- io.envoyproxy.envoy.api.v2.route.RetryPolicy.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,RetryPolicyOrBuilder,Cloneable
- Enclosing class:
- RetryPolicy
public static final class RetryPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder> implements RetryPolicyOrBuilder
HTTP retry :ref:`architecture overview <arch_overview_http_routing_retry>`. [#next-free-field: 11]
Protobuf typeenvoy.api.v2.route.RetryPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RetryPolicy.BuilderaddAllRetriableHeaders(Iterable<? extends HeaderMatcher> values)HTTP response headers that trigger a retry if present in the response.RetryPolicy.BuilderaddAllRetriableRequestHeaders(Iterable<? extends HeaderMatcher> values)HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.BuilderaddAllRetriableStatusCodes(Iterable<? extends Integer> values)HTTP status codes that should trigger a retry in addition to those specified by retry_on.RetryPolicy.BuilderaddAllRetryHostPredicate(Iterable<? extends RetryPolicy.RetryHostPredicate> values)Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RetryPolicy.BuilderaddRetriableHeaders(int index, HeaderMatcher value)HTTP response headers that trigger a retry if present in the response.RetryPolicy.BuilderaddRetriableHeaders(int index, HeaderMatcher.Builder builderForValue)HTTP response headers that trigger a retry if present in the response.RetryPolicy.BuilderaddRetriableHeaders(HeaderMatcher value)HTTP response headers that trigger a retry if present in the response.RetryPolicy.BuilderaddRetriableHeaders(HeaderMatcher.Builder builderForValue)HTTP response headers that trigger a retry if present in the response.HeaderMatcher.BuilderaddRetriableHeadersBuilder()HTTP response headers that trigger a retry if present in the response.HeaderMatcher.BuilderaddRetriableHeadersBuilder(int index)HTTP response headers that trigger a retry if present in the response.RetryPolicy.BuilderaddRetriableRequestHeaders(int index, HeaderMatcher value)HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.BuilderaddRetriableRequestHeaders(int index, HeaderMatcher.Builder builderForValue)HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.BuilderaddRetriableRequestHeaders(HeaderMatcher value)HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.BuilderaddRetriableRequestHeaders(HeaderMatcher.Builder builderForValue)HTTP headers which must be present in the request for retries to be attempted.HeaderMatcher.BuilderaddRetriableRequestHeadersBuilder()HTTP headers which must be present in the request for retries to be attempted.HeaderMatcher.BuilderaddRetriableRequestHeadersBuilder(int index)HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.BuilderaddRetriableStatusCodes(int value)HTTP status codes that should trigger a retry in addition to those specified by retry_on.RetryPolicy.BuilderaddRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate value)Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.BuilderaddRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate.Builder builderForValue)Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.BuilderaddRetryHostPredicate(RetryPolicy.RetryHostPredicate value)Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.BuilderaddRetryHostPredicate(RetryPolicy.RetryHostPredicate.Builder builderForValue)Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.RetryHostPredicate.BuilderaddRetryHostPredicateBuilder()Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.RetryHostPredicate.BuilderaddRetryHostPredicateBuilder(int index)Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicybuild()RetryPolicybuildPartial()RetryPolicy.Builderclear()RetryPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RetryPolicy.BuilderclearHostSelectionRetryMaxAttempts()The maximum number of times host selection will be reattempted before giving up, at which point the host that was last selected will be routed to.RetryPolicy.BuilderclearNumRetries()Specifies the allowed number of retries.RetryPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RetryPolicy.BuilderclearPerTryTimeout()Specifies a non-zero upstream timeout per retry attempt.RetryPolicy.BuilderclearRetriableHeaders()HTTP response headers that trigger a retry if present in the response.RetryPolicy.BuilderclearRetriableRequestHeaders()HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.BuilderclearRetriableStatusCodes()HTTP status codes that should trigger a retry in addition to those specified by retry_on.RetryPolicy.BuilderclearRetryBackOff()Specifies parameters that control retry back off.RetryPolicy.BuilderclearRetryHostPredicate()Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.BuilderclearRetryOn()Specifies the conditions under which retry takes place.RetryPolicy.BuilderclearRetryPriority()Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.RetryPolicy.Builderclone()RetryPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()longgetHostSelectionRetryMaxAttempts()The maximum number of times host selection will be reattempted before giving up, at which point the host that was last selected will be routed to.com.google.protobuf.UInt32ValuegetNumRetries()Specifies the allowed number of retries.com.google.protobuf.UInt32Value.BuildergetNumRetriesBuilder()Specifies the allowed number of retries.com.google.protobuf.UInt32ValueOrBuildergetNumRetriesOrBuilder()Specifies the allowed number of retries.com.google.protobuf.DurationgetPerTryTimeout()Specifies a non-zero upstream timeout per retry attempt.com.google.protobuf.Duration.BuildergetPerTryTimeoutBuilder()Specifies a non-zero upstream timeout per retry attempt.com.google.protobuf.DurationOrBuildergetPerTryTimeoutOrBuilder()Specifies a non-zero upstream timeout per retry attempt.HeaderMatchergetRetriableHeaders(int index)HTTP response headers that trigger a retry if present in the response.HeaderMatcher.BuildergetRetriableHeadersBuilder(int index)HTTP response headers that trigger a retry if present in the response.List<HeaderMatcher.Builder>getRetriableHeadersBuilderList()HTTP response headers that trigger a retry if present in the response.intgetRetriableHeadersCount()HTTP response headers that trigger a retry if present in the response.List<HeaderMatcher>getRetriableHeadersList()HTTP response headers that trigger a retry if present in the response.HeaderMatcherOrBuildergetRetriableHeadersOrBuilder(int index)HTTP response headers that trigger a retry if present in the response.List<? extends HeaderMatcherOrBuilder>getRetriableHeadersOrBuilderList()HTTP response headers that trigger a retry if present in the response.HeaderMatchergetRetriableRequestHeaders(int index)HTTP headers which must be present in the request for retries to be attempted.HeaderMatcher.BuildergetRetriableRequestHeadersBuilder(int index)HTTP headers which must be present in the request for retries to be attempted.List<HeaderMatcher.Builder>getRetriableRequestHeadersBuilderList()HTTP headers which must be present in the request for retries to be attempted.intgetRetriableRequestHeadersCount()HTTP headers which must be present in the request for retries to be attempted.List<HeaderMatcher>getRetriableRequestHeadersList()HTTP headers which must be present in the request for retries to be attempted.HeaderMatcherOrBuildergetRetriableRequestHeadersOrBuilder(int index)HTTP headers which must be present in the request for retries to be attempted.List<? extends HeaderMatcherOrBuilder>getRetriableRequestHeadersOrBuilderList()HTTP headers which must be present in the request for retries to be attempted.intgetRetriableStatusCodes(int index)HTTP status codes that should trigger a retry in addition to those specified by retry_on.intgetRetriableStatusCodesCount()HTTP status codes that should trigger a retry in addition to those specified by retry_on.List<Integer>getRetriableStatusCodesList()HTTP status codes that should trigger a retry in addition to those specified by retry_on.RetryPolicy.RetryBackOffgetRetryBackOff()Specifies parameters that control retry back off.RetryPolicy.RetryBackOff.BuildergetRetryBackOffBuilder()Specifies parameters that control retry back off.RetryPolicy.RetryBackOffOrBuildergetRetryBackOffOrBuilder()Specifies parameters that control retry back off.RetryPolicy.RetryHostPredicategetRetryHostPredicate(int index)Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.RetryHostPredicate.BuildergetRetryHostPredicateBuilder(int index)Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.List<RetryPolicy.RetryHostPredicate.Builder>getRetryHostPredicateBuilderList()Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.intgetRetryHostPredicateCount()Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.List<RetryPolicy.RetryHostPredicate>getRetryHostPredicateList()Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.RetryHostPredicateOrBuildergetRetryHostPredicateOrBuilder(int index)Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.List<? extends RetryPolicy.RetryHostPredicateOrBuilder>getRetryHostPredicateOrBuilderList()Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.StringgetRetryOn()Specifies the conditions under which retry takes place.com.google.protobuf.ByteStringgetRetryOnBytes()Specifies the conditions under which retry takes place.RetryPolicy.RetryPrioritygetRetryPriority()Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.RetryPolicy.RetryPriority.BuildergetRetryPriorityBuilder()Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.RetryPolicy.RetryPriorityOrBuildergetRetryPriorityOrBuilder()Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.booleanhasNumRetries()Specifies the allowed number of retries.booleanhasPerTryTimeout()Specifies a non-zero upstream timeout per retry attempt.booleanhasRetryBackOff()Specifies parameters that control retry back off.booleanhasRetryPriority()Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RetryPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RetryPolicy.BuildermergeFrom(com.google.protobuf.Message other)RetryPolicy.BuildermergeFrom(RetryPolicy other)RetryPolicy.BuildermergeNumRetries(com.google.protobuf.UInt32Value value)Specifies the allowed number of retries.RetryPolicy.BuildermergePerTryTimeout(com.google.protobuf.Duration value)Specifies a non-zero upstream timeout per retry attempt.RetryPolicy.BuildermergeRetryBackOff(RetryPolicy.RetryBackOff value)Specifies parameters that control retry back off.RetryPolicy.BuildermergeRetryPriority(RetryPolicy.RetryPriority value)Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.RetryPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RetryPolicy.BuilderremoveRetriableHeaders(int index)HTTP response headers that trigger a retry if present in the response.RetryPolicy.BuilderremoveRetriableRequestHeaders(int index)HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.BuilderremoveRetryHostPredicate(int index)Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RetryPolicy.BuildersetHostSelectionRetryMaxAttempts(long value)The maximum number of times host selection will be reattempted before giving up, at which point the host that was last selected will be routed to.RetryPolicy.BuildersetNumRetries(com.google.protobuf.UInt32Value value)Specifies the allowed number of retries.RetryPolicy.BuildersetNumRetries(com.google.protobuf.UInt32Value.Builder builderForValue)Specifies the allowed number of retries.RetryPolicy.BuildersetPerTryTimeout(com.google.protobuf.Duration value)Specifies a non-zero upstream timeout per retry attempt.RetryPolicy.BuildersetPerTryTimeout(com.google.protobuf.Duration.Builder builderForValue)Specifies a non-zero upstream timeout per retry attempt.RetryPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RetryPolicy.BuildersetRetriableHeaders(int index, HeaderMatcher value)HTTP response headers that trigger a retry if present in the response.RetryPolicy.BuildersetRetriableHeaders(int index, HeaderMatcher.Builder builderForValue)HTTP response headers that trigger a retry if present in the response.RetryPolicy.BuildersetRetriableRequestHeaders(int index, HeaderMatcher value)HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.BuildersetRetriableRequestHeaders(int index, HeaderMatcher.Builder builderForValue)HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.BuildersetRetriableStatusCodes(int index, int value)HTTP status codes that should trigger a retry in addition to those specified by retry_on.RetryPolicy.BuildersetRetryBackOff(RetryPolicy.RetryBackOff value)Specifies parameters that control retry back off.RetryPolicy.BuildersetRetryBackOff(RetryPolicy.RetryBackOff.Builder builderForValue)Specifies parameters that control retry back off.RetryPolicy.BuildersetRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate value)Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.BuildersetRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate.Builder builderForValue)Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.BuildersetRetryOn(String value)Specifies the conditions under which retry takes place.RetryPolicy.BuildersetRetryOnBytes(com.google.protobuf.ByteString value)Specifies the conditions under which retry takes place.RetryPolicy.BuildersetRetryPriority(RetryPolicy.RetryPriority value)Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.RetryPolicy.BuildersetRetryPriority(RetryPolicy.RetryPriority.Builder builderForValue)Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.RetryPolicy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
clear
public RetryPolicy.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
getDefaultInstanceForType
public RetryPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RetryPolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RetryPolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RetryPolicy.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
setField
public RetryPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
clearField
public RetryPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
clearOneof
public RetryPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
setRepeatedField
public RetryPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
addRepeatedField
public RetryPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
mergeFrom
public RetryPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RetryPolicy.Builder>
-
mergeFrom
public RetryPolicy.Builder mergeFrom(RetryPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
mergeFrom
public RetryPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RetryPolicy.Builder>- Throws:
IOException
-
getRetryOn
public String getRetryOn()
Specifies the conditions under which retry takes place. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-retry-on` and :ref:`config_http_filters_router_x-envoy-retry-grpc-on`.
string retry_on = 1;- Specified by:
getRetryOnin interfaceRetryPolicyOrBuilder- Returns:
- The retryOn.
-
getRetryOnBytes
public com.google.protobuf.ByteString getRetryOnBytes()
Specifies the conditions under which retry takes place. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-retry-on` and :ref:`config_http_filters_router_x-envoy-retry-grpc-on`.
string retry_on = 1;- Specified by:
getRetryOnBytesin interfaceRetryPolicyOrBuilder- Returns:
- The bytes for retryOn.
-
setRetryOn
public RetryPolicy.Builder setRetryOn(String value)
Specifies the conditions under which retry takes place. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-retry-on` and :ref:`config_http_filters_router_x-envoy-retry-grpc-on`.
string retry_on = 1;- Parameters:
value- The retryOn to set.- Returns:
- This builder for chaining.
-
clearRetryOn
public RetryPolicy.Builder clearRetryOn()
Specifies the conditions under which retry takes place. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-retry-on` and :ref:`config_http_filters_router_x-envoy-retry-grpc-on`.
string retry_on = 1;- Returns:
- This builder for chaining.
-
setRetryOnBytes
public RetryPolicy.Builder setRetryOnBytes(com.google.protobuf.ByteString value)
Specifies the conditions under which retry takes place. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-retry-on` and :ref:`config_http_filters_router_x-envoy-retry-grpc-on`.
string retry_on = 1;- Parameters:
value- The bytes for retryOn to set.- Returns:
- This builder for chaining.
-
hasNumRetries
public boolean hasNumRetries()
Specifies the allowed number of retries. This parameter is optional and defaults to 1. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-max-retries`.
.google.protobuf.UInt32Value num_retries = 2;- Specified by:
hasNumRetriesin interfaceRetryPolicyOrBuilder- Returns:
- Whether the numRetries field is set.
-
getNumRetries
public com.google.protobuf.UInt32Value getNumRetries()
Specifies the allowed number of retries. This parameter is optional and defaults to 1. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-max-retries`.
.google.protobuf.UInt32Value num_retries = 2;- Specified by:
getNumRetriesin interfaceRetryPolicyOrBuilder- Returns:
- The numRetries.
-
setNumRetries
public RetryPolicy.Builder setNumRetries(com.google.protobuf.UInt32Value value)
Specifies the allowed number of retries. This parameter is optional and defaults to 1. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-max-retries`.
.google.protobuf.UInt32Value num_retries = 2;
-
setNumRetries
public RetryPolicy.Builder setNumRetries(com.google.protobuf.UInt32Value.Builder builderForValue)
Specifies the allowed number of retries. This parameter is optional and defaults to 1. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-max-retries`.
.google.protobuf.UInt32Value num_retries = 2;
-
mergeNumRetries
public RetryPolicy.Builder mergeNumRetries(com.google.protobuf.UInt32Value value)
Specifies the allowed number of retries. This parameter is optional and defaults to 1. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-max-retries`.
.google.protobuf.UInt32Value num_retries = 2;
-
clearNumRetries
public RetryPolicy.Builder clearNumRetries()
Specifies the allowed number of retries. This parameter is optional and defaults to 1. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-max-retries`.
.google.protobuf.UInt32Value num_retries = 2;
-
getNumRetriesBuilder
public com.google.protobuf.UInt32Value.Builder getNumRetriesBuilder()
Specifies the allowed number of retries. This parameter is optional and defaults to 1. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-max-retries`.
.google.protobuf.UInt32Value num_retries = 2;
-
getNumRetriesOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getNumRetriesOrBuilder()
Specifies the allowed number of retries. This parameter is optional and defaults to 1. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-max-retries`.
.google.protobuf.UInt32Value num_retries = 2;- Specified by:
getNumRetriesOrBuilderin interfaceRetryPolicyOrBuilder
-
hasPerTryTimeout
public boolean hasPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3;- Specified by:
hasPerTryTimeoutin interfaceRetryPolicyOrBuilder- Returns:
- Whether the perTryTimeout field is set.
-
getPerTryTimeout
public com.google.protobuf.Duration getPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3;- Specified by:
getPerTryTimeoutin interfaceRetryPolicyOrBuilder- Returns:
- The perTryTimeout.
-
setPerTryTimeout
public RetryPolicy.Builder setPerTryTimeout(com.google.protobuf.Duration value)
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3;
-
setPerTryTimeout
public RetryPolicy.Builder setPerTryTimeout(com.google.protobuf.Duration.Builder builderForValue)
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3;
-
mergePerTryTimeout
public RetryPolicy.Builder mergePerTryTimeout(com.google.protobuf.Duration value)
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3;
-
clearPerTryTimeout
public RetryPolicy.Builder clearPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3;
-
getPerTryTimeoutBuilder
public com.google.protobuf.Duration.Builder getPerTryTimeoutBuilder()
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3;
-
getPerTryTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getPerTryTimeoutOrBuilder()
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3;- Specified by:
getPerTryTimeoutOrBuilderin interfaceRetryPolicyOrBuilder
-
hasRetryPriority
public boolean hasRetryPriority()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;- Specified by:
hasRetryPriorityin interfaceRetryPolicyOrBuilder- Returns:
- Whether the retryPriority field is set.
-
getRetryPriority
public RetryPolicy.RetryPriority getRetryPriority()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;- Specified by:
getRetryPriorityin interfaceRetryPolicyOrBuilder- Returns:
- The retryPriority.
-
setRetryPriority
public RetryPolicy.Builder setRetryPriority(RetryPolicy.RetryPriority value)
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;
-
setRetryPriority
public RetryPolicy.Builder setRetryPriority(RetryPolicy.RetryPriority.Builder builderForValue)
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;
-
mergeRetryPriority
public RetryPolicy.Builder mergeRetryPriority(RetryPolicy.RetryPriority value)
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;
-
clearRetryPriority
public RetryPolicy.Builder clearRetryPriority()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;
-
getRetryPriorityBuilder
public RetryPolicy.RetryPriority.Builder getRetryPriorityBuilder()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;
-
getRetryPriorityOrBuilder
public RetryPolicy.RetryPriorityOrBuilder getRetryPriorityOrBuilder()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;- Specified by:
getRetryPriorityOrBuilderin interfaceRetryPolicyOrBuilder
-
getRetryHostPredicateList
public List<RetryPolicy.RetryHostPredicate> getRetryHostPredicateList()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;- Specified by:
getRetryHostPredicateListin interfaceRetryPolicyOrBuilder
-
getRetryHostPredicateCount
public int getRetryHostPredicateCount()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;- Specified by:
getRetryHostPredicateCountin interfaceRetryPolicyOrBuilder
-
getRetryHostPredicate
public RetryPolicy.RetryHostPredicate getRetryHostPredicate(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;- Specified by:
getRetryHostPredicatein interfaceRetryPolicyOrBuilder
-
setRetryHostPredicate
public RetryPolicy.Builder setRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate value)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
setRetryHostPredicate
public RetryPolicy.Builder setRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate.Builder builderForValue)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
addRetryHostPredicate
public RetryPolicy.Builder addRetryHostPredicate(RetryPolicy.RetryHostPredicate value)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
addRetryHostPredicate
public RetryPolicy.Builder addRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate value)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
addRetryHostPredicate
public RetryPolicy.Builder addRetryHostPredicate(RetryPolicy.RetryHostPredicate.Builder builderForValue)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
addRetryHostPredicate
public RetryPolicy.Builder addRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate.Builder builderForValue)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
addAllRetryHostPredicate
public RetryPolicy.Builder addAllRetryHostPredicate(Iterable<? extends RetryPolicy.RetryHostPredicate> values)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
clearRetryHostPredicate
public RetryPolicy.Builder clearRetryHostPredicate()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
removeRetryHostPredicate
public RetryPolicy.Builder removeRetryHostPredicate(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
getRetryHostPredicateBuilder
public RetryPolicy.RetryHostPredicate.Builder getRetryHostPredicateBuilder(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
getRetryHostPredicateOrBuilder
public RetryPolicy.RetryHostPredicateOrBuilder getRetryHostPredicateOrBuilder(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;- Specified by:
getRetryHostPredicateOrBuilderin interfaceRetryPolicyOrBuilder
-
getRetryHostPredicateOrBuilderList
public List<? extends RetryPolicy.RetryHostPredicateOrBuilder> getRetryHostPredicateOrBuilderList()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;- Specified by:
getRetryHostPredicateOrBuilderListin interfaceRetryPolicyOrBuilder
-
addRetryHostPredicateBuilder
public RetryPolicy.RetryHostPredicate.Builder addRetryHostPredicateBuilder()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
addRetryHostPredicateBuilder
public RetryPolicy.RetryHostPredicate.Builder addRetryHostPredicateBuilder(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
getRetryHostPredicateBuilderList
public List<RetryPolicy.RetryHostPredicate.Builder> getRetryHostPredicateBuilderList()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
getHostSelectionRetryMaxAttempts
public long getHostSelectionRetryMaxAttempts()
The maximum number of times host selection will be reattempted before giving up, at which point the host that was last selected will be routed to. If unspecified, this will default to retrying once.
int64 host_selection_retry_max_attempts = 6;- Specified by:
getHostSelectionRetryMaxAttemptsin interfaceRetryPolicyOrBuilder- Returns:
- The hostSelectionRetryMaxAttempts.
-
setHostSelectionRetryMaxAttempts
public RetryPolicy.Builder setHostSelectionRetryMaxAttempts(long value)
The maximum number of times host selection will be reattempted before giving up, at which point the host that was last selected will be routed to. If unspecified, this will default to retrying once.
int64 host_selection_retry_max_attempts = 6;- Parameters:
value- The hostSelectionRetryMaxAttempts to set.- Returns:
- This builder for chaining.
-
clearHostSelectionRetryMaxAttempts
public RetryPolicy.Builder clearHostSelectionRetryMaxAttempts()
The maximum number of times host selection will be reattempted before giving up, at which point the host that was last selected will be routed to. If unspecified, this will default to retrying once.
int64 host_selection_retry_max_attempts = 6;- Returns:
- This builder for chaining.
-
getRetriableStatusCodesList
public List<Integer> getRetriableStatusCodesList()
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
repeated uint32 retriable_status_codes = 7;- Specified by:
getRetriableStatusCodesListin interfaceRetryPolicyOrBuilder- Returns:
- A list containing the retriableStatusCodes.
-
getRetriableStatusCodesCount
public int getRetriableStatusCodesCount()
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
repeated uint32 retriable_status_codes = 7;- Specified by:
getRetriableStatusCodesCountin interfaceRetryPolicyOrBuilder- Returns:
- The count of retriableStatusCodes.
-
getRetriableStatusCodes
public int getRetriableStatusCodes(int index)
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
repeated uint32 retriable_status_codes = 7;- Specified by:
getRetriableStatusCodesin interfaceRetryPolicyOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The retriableStatusCodes at the given index.
-
setRetriableStatusCodes
public RetryPolicy.Builder setRetriableStatusCodes(int index, int value)
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
repeated uint32 retriable_status_codes = 7;- Parameters:
index- The index to set the value at.value- The retriableStatusCodes to set.- Returns:
- This builder for chaining.
-
addRetriableStatusCodes
public RetryPolicy.Builder addRetriableStatusCodes(int value)
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
repeated uint32 retriable_status_codes = 7;- Parameters:
value- The retriableStatusCodes to add.- Returns:
- This builder for chaining.
-
addAllRetriableStatusCodes
public RetryPolicy.Builder addAllRetriableStatusCodes(Iterable<? extends Integer> values)
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
repeated uint32 retriable_status_codes = 7;- Parameters:
values- The retriableStatusCodes to add.- Returns:
- This builder for chaining.
-
clearRetriableStatusCodes
public RetryPolicy.Builder clearRetriableStatusCodes()
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
repeated uint32 retriable_status_codes = 7;- Returns:
- This builder for chaining.
-
hasRetryBackOff
public boolean hasRetryBackOff()
Specifies parameters that control retry back off. This parameter is optional, in which case the default base interval is 25 milliseconds or, if set, the current value of the `upstream.base_retry_backoff_ms` runtime parameter. The default maximum interval is 10 times the base interval. The documentation for :ref:`config_http_filters_router_x-envoy-max-retries` describes Envoy's back-off algorithm.
.envoy.api.v2.route.RetryPolicy.RetryBackOff retry_back_off = 8;- Specified by:
hasRetryBackOffin interfaceRetryPolicyOrBuilder- Returns:
- Whether the retryBackOff field is set.
-
getRetryBackOff
public RetryPolicy.RetryBackOff getRetryBackOff()
Specifies parameters that control retry back off. This parameter is optional, in which case the default base interval is 25 milliseconds or, if set, the current value of the `upstream.base_retry_backoff_ms` runtime parameter. The default maximum interval is 10 times the base interval. The documentation for :ref:`config_http_filters_router_x-envoy-max-retries` describes Envoy's back-off algorithm.
.envoy.api.v2.route.RetryPolicy.RetryBackOff retry_back_off = 8;- Specified by:
getRetryBackOffin interfaceRetryPolicyOrBuilder- Returns:
- The retryBackOff.
-
setRetryBackOff
public RetryPolicy.Builder setRetryBackOff(RetryPolicy.RetryBackOff value)
Specifies parameters that control retry back off. This parameter is optional, in which case the default base interval is 25 milliseconds or, if set, the current value of the `upstream.base_retry_backoff_ms` runtime parameter. The default maximum interval is 10 times the base interval. The documentation for :ref:`config_http_filters_router_x-envoy-max-retries` describes Envoy's back-off algorithm.
.envoy.api.v2.route.RetryPolicy.RetryBackOff retry_back_off = 8;
-
setRetryBackOff
public RetryPolicy.Builder setRetryBackOff(RetryPolicy.RetryBackOff.Builder builderForValue)
Specifies parameters that control retry back off. This parameter is optional, in which case the default base interval is 25 milliseconds or, if set, the current value of the `upstream.base_retry_backoff_ms` runtime parameter. The default maximum interval is 10 times the base interval. The documentation for :ref:`config_http_filters_router_x-envoy-max-retries` describes Envoy's back-off algorithm.
.envoy.api.v2.route.RetryPolicy.RetryBackOff retry_back_off = 8;
-
mergeRetryBackOff
public RetryPolicy.Builder mergeRetryBackOff(RetryPolicy.RetryBackOff value)
Specifies parameters that control retry back off. This parameter is optional, in which case the default base interval is 25 milliseconds or, if set, the current value of the `upstream.base_retry_backoff_ms` runtime parameter. The default maximum interval is 10 times the base interval. The documentation for :ref:`config_http_filters_router_x-envoy-max-retries` describes Envoy's back-off algorithm.
.envoy.api.v2.route.RetryPolicy.RetryBackOff retry_back_off = 8;
-
clearRetryBackOff
public RetryPolicy.Builder clearRetryBackOff()
Specifies parameters that control retry back off. This parameter is optional, in which case the default base interval is 25 milliseconds or, if set, the current value of the `upstream.base_retry_backoff_ms` runtime parameter. The default maximum interval is 10 times the base interval. The documentation for :ref:`config_http_filters_router_x-envoy-max-retries` describes Envoy's back-off algorithm.
.envoy.api.v2.route.RetryPolicy.RetryBackOff retry_back_off = 8;
-
getRetryBackOffBuilder
public RetryPolicy.RetryBackOff.Builder getRetryBackOffBuilder()
Specifies parameters that control retry back off. This parameter is optional, in which case the default base interval is 25 milliseconds or, if set, the current value of the `upstream.base_retry_backoff_ms` runtime parameter. The default maximum interval is 10 times the base interval. The documentation for :ref:`config_http_filters_router_x-envoy-max-retries` describes Envoy's back-off algorithm.
.envoy.api.v2.route.RetryPolicy.RetryBackOff retry_back_off = 8;
-
getRetryBackOffOrBuilder
public RetryPolicy.RetryBackOffOrBuilder getRetryBackOffOrBuilder()
Specifies parameters that control retry back off. This parameter is optional, in which case the default base interval is 25 milliseconds or, if set, the current value of the `upstream.base_retry_backoff_ms` runtime parameter. The default maximum interval is 10 times the base interval. The documentation for :ref:`config_http_filters_router_x-envoy-max-retries` describes Envoy's back-off algorithm.
.envoy.api.v2.route.RetryPolicy.RetryBackOff retry_back_off = 8;- Specified by:
getRetryBackOffOrBuilderin interfaceRetryPolicyOrBuilder
-
getRetriableHeadersList
public List<HeaderMatcher> getRetriableHeadersList()
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;- Specified by:
getRetriableHeadersListin interfaceRetryPolicyOrBuilder
-
getRetriableHeadersCount
public int getRetriableHeadersCount()
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;- Specified by:
getRetriableHeadersCountin interfaceRetryPolicyOrBuilder
-
getRetriableHeaders
public HeaderMatcher getRetriableHeaders(int index)
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;- Specified by:
getRetriableHeadersin interfaceRetryPolicyOrBuilder
-
setRetriableHeaders
public RetryPolicy.Builder setRetriableHeaders(int index, HeaderMatcher value)
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
setRetriableHeaders
public RetryPolicy.Builder setRetriableHeaders(int index, HeaderMatcher.Builder builderForValue)
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
addRetriableHeaders
public RetryPolicy.Builder addRetriableHeaders(HeaderMatcher value)
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
addRetriableHeaders
public RetryPolicy.Builder addRetriableHeaders(int index, HeaderMatcher value)
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
addRetriableHeaders
public RetryPolicy.Builder addRetriableHeaders(HeaderMatcher.Builder builderForValue)
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
addRetriableHeaders
public RetryPolicy.Builder addRetriableHeaders(int index, HeaderMatcher.Builder builderForValue)
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
addAllRetriableHeaders
public RetryPolicy.Builder addAllRetriableHeaders(Iterable<? extends HeaderMatcher> values)
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
clearRetriableHeaders
public RetryPolicy.Builder clearRetriableHeaders()
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
removeRetriableHeaders
public RetryPolicy.Builder removeRetriableHeaders(int index)
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
getRetriableHeadersBuilder
public HeaderMatcher.Builder getRetriableHeadersBuilder(int index)
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
getRetriableHeadersOrBuilder
public HeaderMatcherOrBuilder getRetriableHeadersOrBuilder(int index)
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;- Specified by:
getRetriableHeadersOrBuilderin interfaceRetryPolicyOrBuilder
-
getRetriableHeadersOrBuilderList
public List<? extends HeaderMatcherOrBuilder> getRetriableHeadersOrBuilderList()
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;- Specified by:
getRetriableHeadersOrBuilderListin interfaceRetryPolicyOrBuilder
-
addRetriableHeadersBuilder
public HeaderMatcher.Builder addRetriableHeadersBuilder()
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
addRetriableHeadersBuilder
public HeaderMatcher.Builder addRetriableHeadersBuilder(int index)
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
getRetriableHeadersBuilderList
public List<HeaderMatcher.Builder> getRetriableHeadersBuilderList()
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.api.v2.route.HeaderMatcher retriable_headers = 9;
-
getRetriableRequestHeadersList
public List<HeaderMatcher> getRetriableRequestHeadersList()
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;- Specified by:
getRetriableRequestHeadersListin interfaceRetryPolicyOrBuilder
-
getRetriableRequestHeadersCount
public int getRetriableRequestHeadersCount()
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;- Specified by:
getRetriableRequestHeadersCountin interfaceRetryPolicyOrBuilder
-
getRetriableRequestHeaders
public HeaderMatcher getRetriableRequestHeaders(int index)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;- Specified by:
getRetriableRequestHeadersin interfaceRetryPolicyOrBuilder
-
setRetriableRequestHeaders
public RetryPolicy.Builder setRetriableRequestHeaders(int index, HeaderMatcher value)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
setRetriableRequestHeaders
public RetryPolicy.Builder setRetriableRequestHeaders(int index, HeaderMatcher.Builder builderForValue)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
addRetriableRequestHeaders
public RetryPolicy.Builder addRetriableRequestHeaders(HeaderMatcher value)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
addRetriableRequestHeaders
public RetryPolicy.Builder addRetriableRequestHeaders(int index, HeaderMatcher value)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
addRetriableRequestHeaders
public RetryPolicy.Builder addRetriableRequestHeaders(HeaderMatcher.Builder builderForValue)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
addRetriableRequestHeaders
public RetryPolicy.Builder addRetriableRequestHeaders(int index, HeaderMatcher.Builder builderForValue)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
addAllRetriableRequestHeaders
public RetryPolicy.Builder addAllRetriableRequestHeaders(Iterable<? extends HeaderMatcher> values)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
clearRetriableRequestHeaders
public RetryPolicy.Builder clearRetriableRequestHeaders()
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
removeRetriableRequestHeaders
public RetryPolicy.Builder removeRetriableRequestHeaders(int index)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
getRetriableRequestHeadersBuilder
public HeaderMatcher.Builder getRetriableRequestHeadersBuilder(int index)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
getRetriableRequestHeadersOrBuilder
public HeaderMatcherOrBuilder getRetriableRequestHeadersOrBuilder(int index)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;- Specified by:
getRetriableRequestHeadersOrBuilderin interfaceRetryPolicyOrBuilder
-
getRetriableRequestHeadersOrBuilderList
public List<? extends HeaderMatcherOrBuilder> getRetriableRequestHeadersOrBuilderList()
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;- Specified by:
getRetriableRequestHeadersOrBuilderListin interfaceRetryPolicyOrBuilder
-
addRetriableRequestHeadersBuilder
public HeaderMatcher.Builder addRetriableRequestHeadersBuilder()
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
addRetriableRequestHeadersBuilder
public HeaderMatcher.Builder addRetriableRequestHeadersBuilder(int index)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
getRetriableRequestHeadersBuilderList
public List<HeaderMatcher.Builder> getRetriableRequestHeadersBuilderList()
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.api.v2.route.HeaderMatcher retriable_request_headers = 10;
-
setUnknownFields
public final RetryPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
mergeUnknownFields
public final RetryPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>
-
-