Class RetryPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<RetryPolicy.Builder>
-
- io.envoyproxy.envoy.config.route.v3.RetryPolicy.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,RetryPolicyOrBuilder
,java.lang.Cloneable
- Enclosing class:
- RetryPolicy
public static final class RetryPolicy.Builder extends com.google.protobuf.GeneratedMessage.Builder<RetryPolicy.Builder> implements RetryPolicyOrBuilder
HTTP retry :ref:`architecture overview <arch_overview_http_routing_retry>`. [#next-free-field: 14]
Protobuf typeenvoy.config.route.v3.RetryPolicy
-
-
Field Summary
Fields Modifier and Type Field Description private int
bitField0_
private long
hostSelectionRetryMaxAttempts_
private com.google.protobuf.UInt32Value
numRetries_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder>
numRetriesBuilder_
private com.google.protobuf.Duration
perTryIdleTimeout_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>
perTryIdleTimeoutBuilder_
private com.google.protobuf.Duration
perTryTimeout_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>
perTryTimeoutBuilder_
private RetryPolicy.RateLimitedRetryBackOff
rateLimitedRetryBackOff_
private com.google.protobuf.SingleFieldBuilder<RetryPolicy.RateLimitedRetryBackOff,RetryPolicy.RateLimitedRetryBackOff.Builder,RetryPolicy.RateLimitedRetryBackOffOrBuilder>
rateLimitedRetryBackOffBuilder_
private java.util.List<HeaderMatcher>
retriableHeaders_
private com.google.protobuf.RepeatedFieldBuilder<HeaderMatcher,HeaderMatcher.Builder,HeaderMatcherOrBuilder>
retriableHeadersBuilder_
private java.util.List<HeaderMatcher>
retriableRequestHeaders_
private com.google.protobuf.RepeatedFieldBuilder<HeaderMatcher,HeaderMatcher.Builder,HeaderMatcherOrBuilder>
retriableRequestHeadersBuilder_
private com.google.protobuf.Internal.IntList
retriableStatusCodes_
private RetryPolicy.RetryBackOff
retryBackOff_
private com.google.protobuf.SingleFieldBuilder<RetryPolicy.RetryBackOff,RetryPolicy.RetryBackOff.Builder,RetryPolicy.RetryBackOffOrBuilder>
retryBackOffBuilder_
private java.util.List<RetryPolicy.RetryHostPredicate>
retryHostPredicate_
private com.google.protobuf.RepeatedFieldBuilder<RetryPolicy.RetryHostPredicate,RetryPolicy.RetryHostPredicate.Builder,RetryPolicy.RetryHostPredicateOrBuilder>
retryHostPredicateBuilder_
private java.lang.Object
retryOn_
private java.util.List<TypedExtensionConfig>
retryOptionsPredicates_
private com.google.protobuf.RepeatedFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder>
retryOptionsPredicatesBuilder_
private RetryPolicy.RetryPriority
retryPriority_
private com.google.protobuf.SingleFieldBuilder<RetryPolicy.RetryPriority,RetryPolicy.RetryPriority.Builder,RetryPolicy.RetryPriorityOrBuilder>
retryPriorityBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RetryPolicy.Builder
addAllRetriableHeaders(java.lang.Iterable<? extends HeaderMatcher> values)
HTTP response headers that trigger a retry if present in the response.RetryPolicy.Builder
addAllRetriableRequestHeaders(java.lang.Iterable<? extends HeaderMatcher> values)
HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.Builder
addAllRetriableStatusCodes(java.lang.Iterable<? extends java.lang.Integer> values)
HTTP status codes that should trigger a retry in addition to those specified by retry_on.RetryPolicy.Builder
addAllRetryHostPredicate(java.lang.Iterable<? extends RetryPolicy.RetryHostPredicate> values)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.Builder
addAllRetryOptionsPredicates(java.lang.Iterable<? extends TypedExtensionConfig> values)
Retry options predicates that will be applied prior to retrying a request.RetryPolicy.Builder
addRetriableHeaders(int index, HeaderMatcher value)
HTTP response headers that trigger a retry if present in the response.RetryPolicy.Builder
addRetriableHeaders(int index, HeaderMatcher.Builder builderForValue)
HTTP response headers that trigger a retry if present in the response.RetryPolicy.Builder
addRetriableHeaders(HeaderMatcher value)
HTTP response headers that trigger a retry if present in the response.RetryPolicy.Builder
addRetriableHeaders(HeaderMatcher.Builder builderForValue)
HTTP response headers that trigger a retry if present in the response.HeaderMatcher.Builder
addRetriableHeadersBuilder()
HTTP response headers that trigger a retry if present in the response.HeaderMatcher.Builder
addRetriableHeadersBuilder(int index)
HTTP response headers that trigger a retry if present in the response.RetryPolicy.Builder
addRetriableRequestHeaders(int index, HeaderMatcher value)
HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.Builder
addRetriableRequestHeaders(int index, HeaderMatcher.Builder builderForValue)
HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.Builder
addRetriableRequestHeaders(HeaderMatcher value)
HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.Builder
addRetriableRequestHeaders(HeaderMatcher.Builder builderForValue)
HTTP headers which must be present in the request for retries to be attempted.HeaderMatcher.Builder
addRetriableRequestHeadersBuilder()
HTTP headers which must be present in the request for retries to be attempted.HeaderMatcher.Builder
addRetriableRequestHeadersBuilder(int index)
HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.Builder
addRetriableStatusCodes(int value)
HTTP status codes that should trigger a retry in addition to those specified by retry_on.RetryPolicy.Builder
addRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate value)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.Builder
addRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate.Builder builderForValue)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.Builder
addRetryHostPredicate(RetryPolicy.RetryHostPredicate value)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.Builder
addRetryHostPredicate(RetryPolicy.RetryHostPredicate.Builder builderForValue)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.RetryHostPredicate.Builder
addRetryHostPredicateBuilder()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.RetryHostPredicate.Builder
addRetryHostPredicateBuilder(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.Builder
addRetryOptionsPredicates(int index, TypedExtensionConfig value)
Retry options predicates that will be applied prior to retrying a request.RetryPolicy.Builder
addRetryOptionsPredicates(int index, TypedExtensionConfig.Builder builderForValue)
Retry options predicates that will be applied prior to retrying a request.RetryPolicy.Builder
addRetryOptionsPredicates(TypedExtensionConfig value)
Retry options predicates that will be applied prior to retrying a request.RetryPolicy.Builder
addRetryOptionsPredicates(TypedExtensionConfig.Builder builderForValue)
Retry options predicates that will be applied prior to retrying a request.TypedExtensionConfig.Builder
addRetryOptionsPredicatesBuilder()
Retry options predicates that will be applied prior to retrying a request.TypedExtensionConfig.Builder
addRetryOptionsPredicatesBuilder(int index)
Retry options predicates that will be applied prior to retrying a request.RetryPolicy
build()
RetryPolicy
buildPartial()
private void
buildPartial0(RetryPolicy result)
private void
buildPartialRepeatedFields(RetryPolicy result)
RetryPolicy.Builder
clear()
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.RetryPolicy.Builder
clearNumRetries()
Specifies the allowed number of retries.RetryPolicy.Builder
clearPerTryIdleTimeout()
Specifies an upstream idle timeout per retry attempt (including the initial attempt).RetryPolicy.Builder
clearPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt (including the initial attempt).RetryPolicy.Builder
clearRateLimitedRetryBackOff()
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server.RetryPolicy.Builder
clearRetriableHeaders()
HTTP response headers that trigger a retry if present in the response.RetryPolicy.Builder
clearRetriableRequestHeaders()
HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.Builder
clearRetriableStatusCodes()
HTTP status codes that should trigger a retry in addition to those specified by retry_on.RetryPolicy.Builder
clearRetryBackOff()
Specifies parameters that control exponential retry back off.RetryPolicy.Builder
clearRetryHostPredicate()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.Builder
clearRetryOn()
Specifies the conditions under which retry takes place.RetryPolicy.Builder
clearRetryOptionsPredicates()
Retry options predicates that will be applied prior to retrying a request.RetryPolicy.Builder
clearRetryPriority()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.private void
ensureRetriableHeadersIsMutable()
private void
ensureRetriableRequestHeadersIsMutable()
private void
ensureRetriableStatusCodesIsMutable()
private void
ensureRetryHostPredicateIsMutable()
private void
ensureRetryOptionsPredicatesIsMutable()
RetryPolicy
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
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.com.google.protobuf.UInt32Value
getNumRetries()
Specifies the allowed number of retries.com.google.protobuf.UInt32Value.Builder
getNumRetriesBuilder()
Specifies the allowed number of retries.private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder>
getNumRetriesFieldBuilder()
Specifies the allowed number of retries.com.google.protobuf.UInt32ValueOrBuilder
getNumRetriesOrBuilder()
Specifies the allowed number of retries.com.google.protobuf.Duration
getPerTryIdleTimeout()
Specifies an upstream idle timeout per retry attempt (including the initial attempt).com.google.protobuf.Duration.Builder
getPerTryIdleTimeoutBuilder()
Specifies an upstream idle timeout per retry attempt (including the initial attempt).private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>
getPerTryIdleTimeoutFieldBuilder()
Specifies an upstream idle timeout per retry attempt (including the initial attempt).com.google.protobuf.DurationOrBuilder
getPerTryIdleTimeoutOrBuilder()
Specifies an upstream idle timeout per retry attempt (including the initial attempt).com.google.protobuf.Duration
getPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt (including the initial attempt).com.google.protobuf.Duration.Builder
getPerTryTimeoutBuilder()
Specifies a non-zero upstream timeout per retry attempt (including the initial attempt).private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder>
getPerTryTimeoutFieldBuilder()
Specifies a non-zero upstream timeout per retry attempt (including the initial attempt).com.google.protobuf.DurationOrBuilder
getPerTryTimeoutOrBuilder()
Specifies a non-zero upstream timeout per retry attempt (including the initial attempt).RetryPolicy.RateLimitedRetryBackOff
getRateLimitedRetryBackOff()
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server.RetryPolicy.RateLimitedRetryBackOff.Builder
getRateLimitedRetryBackOffBuilder()
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server.private com.google.protobuf.SingleFieldBuilder<RetryPolicy.RateLimitedRetryBackOff,RetryPolicy.RateLimitedRetryBackOff.Builder,RetryPolicy.RateLimitedRetryBackOffOrBuilder>
getRateLimitedRetryBackOffFieldBuilder()
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server.RetryPolicy.RateLimitedRetryBackOffOrBuilder
getRateLimitedRetryBackOffOrBuilder()
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server.HeaderMatcher
getRetriableHeaders(int index)
HTTP response headers that trigger a retry if present in the response.HeaderMatcher.Builder
getRetriableHeadersBuilder(int index)
HTTP response headers that trigger a retry if present in the response.java.util.List<HeaderMatcher.Builder>
getRetriableHeadersBuilderList()
HTTP response headers that trigger a retry if present in the response.int
getRetriableHeadersCount()
HTTP response headers that trigger a retry if present in the response.private com.google.protobuf.RepeatedFieldBuilder<HeaderMatcher,HeaderMatcher.Builder,HeaderMatcherOrBuilder>
getRetriableHeadersFieldBuilder()
java.util.List<HeaderMatcher>
getRetriableHeadersList()
HTTP response headers that trigger a retry if present in the response.HeaderMatcherOrBuilder
getRetriableHeadersOrBuilder(int index)
HTTP response headers that trigger a retry if present in the response.java.util.List<? extends HeaderMatcherOrBuilder>
getRetriableHeadersOrBuilderList()
HTTP response headers that trigger a retry if present in the response.HeaderMatcher
getRetriableRequestHeaders(int index)
HTTP headers which must be present in the request for retries to be attempted.HeaderMatcher.Builder
getRetriableRequestHeadersBuilder(int index)
HTTP headers which must be present in the request for retries to be attempted.java.util.List<HeaderMatcher.Builder>
getRetriableRequestHeadersBuilderList()
HTTP headers which must be present in the request for retries to be attempted.int
getRetriableRequestHeadersCount()
HTTP headers which must be present in the request for retries to be attempted.private com.google.protobuf.RepeatedFieldBuilder<HeaderMatcher,HeaderMatcher.Builder,HeaderMatcherOrBuilder>
getRetriableRequestHeadersFieldBuilder()
java.util.List<HeaderMatcher>
getRetriableRequestHeadersList()
HTTP headers which must be present in the request for retries to be attempted.HeaderMatcherOrBuilder
getRetriableRequestHeadersOrBuilder(int index)
HTTP headers which must be present in the request for retries to be attempted.java.util.List<? extends HeaderMatcherOrBuilder>
getRetriableRequestHeadersOrBuilderList()
HTTP headers which must be present in the request for retries to be attempted.int
getRetriableStatusCodes(int index)
HTTP status codes that should trigger a retry in addition to those specified by retry_on.int
getRetriableStatusCodesCount()
HTTP status codes that should trigger a retry in addition to those specified by retry_on.java.util.List<java.lang.Integer>
getRetriableStatusCodesList()
HTTP status codes that should trigger a retry in addition to those specified by retry_on.RetryPolicy.RetryBackOff
getRetryBackOff()
Specifies parameters that control exponential retry back off.RetryPolicy.RetryBackOff.Builder
getRetryBackOffBuilder()
Specifies parameters that control exponential retry back off.private com.google.protobuf.SingleFieldBuilder<RetryPolicy.RetryBackOff,RetryPolicy.RetryBackOff.Builder,RetryPolicy.RetryBackOffOrBuilder>
getRetryBackOffFieldBuilder()
Specifies parameters that control exponential retry back off.RetryPolicy.RetryBackOffOrBuilder
getRetryBackOffOrBuilder()
Specifies parameters that control exponential retry back off.RetryPolicy.RetryHostPredicate
getRetryHostPredicate(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.RetryHostPredicate.Builder
getRetryHostPredicateBuilder(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.java.util.List<RetryPolicy.RetryHostPredicate.Builder>
getRetryHostPredicateBuilderList()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.int
getRetryHostPredicateCount()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.private com.google.protobuf.RepeatedFieldBuilder<RetryPolicy.RetryHostPredicate,RetryPolicy.RetryHostPredicate.Builder,RetryPolicy.RetryHostPredicateOrBuilder>
getRetryHostPredicateFieldBuilder()
java.util.List<RetryPolicy.RetryHostPredicate>
getRetryHostPredicateList()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.RetryHostPredicateOrBuilder
getRetryHostPredicateOrBuilder(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.java.util.List<? extends RetryPolicy.RetryHostPredicateOrBuilder>
getRetryHostPredicateOrBuilderList()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.java.lang.String
getRetryOn()
Specifies the conditions under which retry takes place.com.google.protobuf.ByteString
getRetryOnBytes()
Specifies the conditions under which retry takes place.TypedExtensionConfig
getRetryOptionsPredicates(int index)
Retry options predicates that will be applied prior to retrying a request.TypedExtensionConfig.Builder
getRetryOptionsPredicatesBuilder(int index)
Retry options predicates that will be applied prior to retrying a request.java.util.List<TypedExtensionConfig.Builder>
getRetryOptionsPredicatesBuilderList()
Retry options predicates that will be applied prior to retrying a request.int
getRetryOptionsPredicatesCount()
Retry options predicates that will be applied prior to retrying a request.private com.google.protobuf.RepeatedFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder>
getRetryOptionsPredicatesFieldBuilder()
java.util.List<TypedExtensionConfig>
getRetryOptionsPredicatesList()
Retry options predicates that will be applied prior to retrying a request.TypedExtensionConfigOrBuilder
getRetryOptionsPredicatesOrBuilder(int index)
Retry options predicates that will be applied prior to retrying a request.java.util.List<? extends TypedExtensionConfigOrBuilder>
getRetryOptionsPredicatesOrBuilderList()
Retry options predicates that will be applied prior to retrying a request.RetryPolicy.RetryPriority
getRetryPriority()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.RetryPolicy.RetryPriority.Builder
getRetryPriorityBuilder()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.private com.google.protobuf.SingleFieldBuilder<RetryPolicy.RetryPriority,RetryPolicy.RetryPriority.Builder,RetryPolicy.RetryPriorityOrBuilder>
getRetryPriorityFieldBuilder()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.RetryPolicy.RetryPriorityOrBuilder
getRetryPriorityOrBuilder()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.boolean
hasNumRetries()
Specifies the allowed number of retries.boolean
hasPerTryIdleTimeout()
Specifies an upstream idle timeout per retry attempt (including the initial attempt).boolean
hasPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt (including the initial attempt).boolean
hasRateLimitedRetryBackOff()
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server.boolean
hasRetryBackOff()
Specifies parameters that control exponential retry back off.boolean
hasRetryPriority()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
RetryPolicy.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RetryPolicy.Builder
mergeFrom(com.google.protobuf.Message other)
RetryPolicy.Builder
mergeFrom(RetryPolicy other)
RetryPolicy.Builder
mergeNumRetries(com.google.protobuf.UInt32Value value)
Specifies the allowed number of retries.RetryPolicy.Builder
mergePerTryIdleTimeout(com.google.protobuf.Duration value)
Specifies an upstream idle timeout per retry attempt (including the initial attempt).RetryPolicy.Builder
mergePerTryTimeout(com.google.protobuf.Duration value)
Specifies a non-zero upstream timeout per retry attempt (including the initial attempt).RetryPolicy.Builder
mergeRateLimitedRetryBackOff(RetryPolicy.RateLimitedRetryBackOff value)
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server.RetryPolicy.Builder
mergeRetryBackOff(RetryPolicy.RetryBackOff value)
Specifies parameters that control exponential retry back off.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.RetryPolicy.Builder
removeRetriableHeaders(int index)
HTTP response headers that trigger a retry if present in the response.RetryPolicy.Builder
removeRetriableRequestHeaders(int index)
HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.Builder
removeRetryHostPredicate(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.Builder
removeRetryOptionsPredicates(int index)
Retry options predicates that will be applied prior to retrying a request.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.RetryPolicy.Builder
setNumRetries(com.google.protobuf.UInt32Value value)
Specifies the allowed number of retries.RetryPolicy.Builder
setNumRetries(com.google.protobuf.UInt32Value.Builder builderForValue)
Specifies the allowed number of retries.RetryPolicy.Builder
setPerTryIdleTimeout(com.google.protobuf.Duration value)
Specifies an upstream idle timeout per retry attempt (including the initial attempt).RetryPolicy.Builder
setPerTryIdleTimeout(com.google.protobuf.Duration.Builder builderForValue)
Specifies an upstream idle timeout per retry attempt (including the initial attempt).RetryPolicy.Builder
setPerTryTimeout(com.google.protobuf.Duration value)
Specifies a non-zero upstream timeout per retry attempt (including the initial attempt).RetryPolicy.Builder
setPerTryTimeout(com.google.protobuf.Duration.Builder builderForValue)
Specifies a non-zero upstream timeout per retry attempt (including the initial attempt).RetryPolicy.Builder
setRateLimitedRetryBackOff(RetryPolicy.RateLimitedRetryBackOff value)
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server.RetryPolicy.Builder
setRateLimitedRetryBackOff(RetryPolicy.RateLimitedRetryBackOff.Builder builderForValue)
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server.RetryPolicy.Builder
setRetriableHeaders(int index, HeaderMatcher value)
HTTP response headers that trigger a retry if present in the response.RetryPolicy.Builder
setRetriableHeaders(int index, HeaderMatcher.Builder builderForValue)
HTTP response headers that trigger a retry if present in the response.RetryPolicy.Builder
setRetriableRequestHeaders(int index, HeaderMatcher value)
HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.Builder
setRetriableRequestHeaders(int index, HeaderMatcher.Builder builderForValue)
HTTP headers which must be present in the request for retries to be attempted.RetryPolicy.Builder
setRetriableStatusCodes(int index, int value)
HTTP status codes that should trigger a retry in addition to those specified by retry_on.RetryPolicy.Builder
setRetryBackOff(RetryPolicy.RetryBackOff value)
Specifies parameters that control exponential retry back off.RetryPolicy.Builder
setRetryBackOff(RetryPolicy.RetryBackOff.Builder builderForValue)
Specifies parameters that control exponential retry back off.RetryPolicy.Builder
setRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate value)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.Builder
setRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate.Builder builderForValue)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries.RetryPolicy.Builder
setRetryOn(java.lang.String value)
Specifies the conditions under which retry takes place.RetryPolicy.Builder
setRetryOnBytes(com.google.protobuf.ByteString value)
Specifies the conditions under which retry takes place.RetryPolicy.Builder
setRetryOptionsPredicates(int index, TypedExtensionConfig value)
Retry options predicates that will be applied prior to retrying a request.RetryPolicy.Builder
setRetryOptionsPredicates(int index, TypedExtensionConfig.Builder builderForValue)
Retry options predicates that will be applied prior to retrying a request.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.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.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, 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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
retryOn_
private java.lang.Object retryOn_
-
numRetries_
private com.google.protobuf.UInt32Value numRetries_
-
numRetriesBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder> numRetriesBuilder_
-
perTryTimeout_
private com.google.protobuf.Duration perTryTimeout_
-
perTryTimeoutBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder> perTryTimeoutBuilder_
-
perTryIdleTimeout_
private com.google.protobuf.Duration perTryIdleTimeout_
-
perTryIdleTimeoutBuilder_
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder> perTryIdleTimeoutBuilder_
-
retryPriority_
private RetryPolicy.RetryPriority retryPriority_
-
retryPriorityBuilder_
private com.google.protobuf.SingleFieldBuilder<RetryPolicy.RetryPriority,RetryPolicy.RetryPriority.Builder,RetryPolicy.RetryPriorityOrBuilder> retryPriorityBuilder_
-
retryHostPredicate_
private java.util.List<RetryPolicy.RetryHostPredicate> retryHostPredicate_
-
retryHostPredicateBuilder_
private com.google.protobuf.RepeatedFieldBuilder<RetryPolicy.RetryHostPredicate,RetryPolicy.RetryHostPredicate.Builder,RetryPolicy.RetryHostPredicateOrBuilder> retryHostPredicateBuilder_
-
retryOptionsPredicates_
private java.util.List<TypedExtensionConfig> retryOptionsPredicates_
-
retryOptionsPredicatesBuilder_
private com.google.protobuf.RepeatedFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder> retryOptionsPredicatesBuilder_
-
hostSelectionRetryMaxAttempts_
private long hostSelectionRetryMaxAttempts_
-
retriableStatusCodes_
private com.google.protobuf.Internal.IntList retriableStatusCodes_
-
retryBackOff_
private RetryPolicy.RetryBackOff retryBackOff_
-
retryBackOffBuilder_
private com.google.protobuf.SingleFieldBuilder<RetryPolicy.RetryBackOff,RetryPolicy.RetryBackOff.Builder,RetryPolicy.RetryBackOffOrBuilder> retryBackOffBuilder_
-
rateLimitedRetryBackOff_
private RetryPolicy.RateLimitedRetryBackOff rateLimitedRetryBackOff_
-
rateLimitedRetryBackOffBuilder_
private com.google.protobuf.SingleFieldBuilder<RetryPolicy.RateLimitedRetryBackOff,RetryPolicy.RateLimitedRetryBackOff.Builder,RetryPolicy.RateLimitedRetryBackOffOrBuilder> rateLimitedRetryBackOffBuilder_
-
retriableHeaders_
private java.util.List<HeaderMatcher> retriableHeaders_
-
retriableHeadersBuilder_
private com.google.protobuf.RepeatedFieldBuilder<HeaderMatcher,HeaderMatcher.Builder,HeaderMatcherOrBuilder> retriableHeadersBuilder_
-
retriableRequestHeaders_
private java.util.List<HeaderMatcher> retriableRequestHeaders_
-
retriableRequestHeadersBuilder_
private com.google.protobuf.RepeatedFieldBuilder<HeaderMatcher,HeaderMatcher.Builder,HeaderMatcherOrBuilder> retriableRequestHeadersBuilder_
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<RetryPolicy.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization()
-
clear
public RetryPolicy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<RetryPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<RetryPolicy.Builder>
-
getDefaultInstanceForType
public RetryPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RetryPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RetryPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartialRepeatedFields
private void buildPartialRepeatedFields(RetryPolicy result)
-
buildPartial0
private void buildPartial0(RetryPolicy result)
-
mergeFrom
public RetryPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RetryPolicy.Builder>
-
mergeFrom
public RetryPolicy.Builder mergeFrom(RetryPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<RetryPolicy.Builder>
-
mergeFrom
public RetryPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RetryPolicy.Builder>
- Throws:
java.io.IOException
-
getRetryOn
public java.lang.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:
getRetryOn
in 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:
getRetryOnBytes
in interfaceRetryPolicyOrBuilder
- Returns:
- The bytes for retryOn.
-
setRetryOn
public RetryPolicy.Builder setRetryOn(java.lang.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 [(.udpa.annotations.field_migrate) = { ... }
- Specified by:
hasNumRetries
in 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 [(.udpa.annotations.field_migrate) = { ... }
- Specified by:
getNumRetries
in 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 [(.udpa.annotations.field_migrate) = { ... }
-
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 [(.udpa.annotations.field_migrate) = { ... }
-
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 [(.udpa.annotations.field_migrate) = { ... }
-
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 [(.udpa.annotations.field_migrate) = { ... }
-
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 [(.udpa.annotations.field_migrate) = { ... }
-
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 [(.udpa.annotations.field_migrate) = { ... }
- Specified by:
getNumRetriesOrBuilder
in interfaceRetryPolicyOrBuilder
-
getNumRetriesFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.UInt32Value,com.google.protobuf.UInt32Value.Builder,com.google.protobuf.UInt32ValueOrBuilder> getNumRetriesFieldBuilder()
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 [(.udpa.annotations.field_migrate) = { ... }
-
hasPerTryTimeout
public boolean hasPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt (including the initial 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_v3_api_field_config.route.v3.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:
hasPerTryTimeout
in interfaceRetryPolicyOrBuilder
- Returns:
- Whether the perTryTimeout field is set.
-
getPerTryTimeout
public com.google.protobuf.Duration getPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt (including the initial 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_v3_api_field_config.route.v3.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:
getPerTryTimeout
in interfaceRetryPolicyOrBuilder
- Returns:
- The perTryTimeout.
-
setPerTryTimeout
public RetryPolicy.Builder setPerTryTimeout(com.google.protobuf.Duration value)
Specifies a non-zero upstream timeout per retry attempt (including the initial 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_v3_api_field_config.route.v3.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 (including the initial 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_v3_api_field_config.route.v3.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 (including the initial 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_v3_api_field_config.route.v3.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 (including the initial 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_v3_api_field_config.route.v3.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 (including the initial 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_v3_api_field_config.route.v3.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 (including the initial 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_v3_api_field_config.route.v3.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:
getPerTryTimeoutOrBuilder
in interfaceRetryPolicyOrBuilder
-
getPerTryTimeoutFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder> getPerTryTimeoutFieldBuilder()
Specifies a non-zero upstream timeout per retry attempt (including the initial 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_v3_api_field_config.route.v3.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;
-
hasPerTryIdleTimeout
public boolean hasPerTryIdleTimeout()
Specifies an upstream idle timeout per retry attempt (including the initial attempt). This parameter is optional and if absent there is no per try idle timeout. The semantics of the per try idle timeout are similar to the :ref:`route idle timeout <envoy_v3_api_field_config.route.v3.RouteAction.timeout>` and :ref:`stream idle timeout <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.stream_idle_timeout>` both enforced by the HTTP connection manager. The difference is that this idle timeout is enforced by the router for each individual attempt and thus after all previous filters have run, as opposed to *before* all previous filters run for the other idle timeouts. This timeout is useful in cases in which total request timeout is bounded by a number of retries and a :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, but there is a desire to ensure each try is making incremental progress. Note also that similar to :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, this idle timeout does not start until after both the entire request has been received by the router *and* a connection pool connection has been obtained. Unlike :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, the idle timer continues once the response starts streaming back to the downstream client. This ensures that response data continues to make progress without using one of the HTTP connection manager idle timeouts.
.google.protobuf.Duration per_try_idle_timeout = 13;
- Specified by:
hasPerTryIdleTimeout
in interfaceRetryPolicyOrBuilder
- Returns:
- Whether the perTryIdleTimeout field is set.
-
getPerTryIdleTimeout
public com.google.protobuf.Duration getPerTryIdleTimeout()
Specifies an upstream idle timeout per retry attempt (including the initial attempt). This parameter is optional and if absent there is no per try idle timeout. The semantics of the per try idle timeout are similar to the :ref:`route idle timeout <envoy_v3_api_field_config.route.v3.RouteAction.timeout>` and :ref:`stream idle timeout <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.stream_idle_timeout>` both enforced by the HTTP connection manager. The difference is that this idle timeout is enforced by the router for each individual attempt and thus after all previous filters have run, as opposed to *before* all previous filters run for the other idle timeouts. This timeout is useful in cases in which total request timeout is bounded by a number of retries and a :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, but there is a desire to ensure each try is making incremental progress. Note also that similar to :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, this idle timeout does not start until after both the entire request has been received by the router *and* a connection pool connection has been obtained. Unlike :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, the idle timer continues once the response starts streaming back to the downstream client. This ensures that response data continues to make progress without using one of the HTTP connection manager idle timeouts.
.google.protobuf.Duration per_try_idle_timeout = 13;
- Specified by:
getPerTryIdleTimeout
in interfaceRetryPolicyOrBuilder
- Returns:
- The perTryIdleTimeout.
-
setPerTryIdleTimeout
public RetryPolicy.Builder setPerTryIdleTimeout(com.google.protobuf.Duration value)
Specifies an upstream idle timeout per retry attempt (including the initial attempt). This parameter is optional and if absent there is no per try idle timeout. The semantics of the per try idle timeout are similar to the :ref:`route idle timeout <envoy_v3_api_field_config.route.v3.RouteAction.timeout>` and :ref:`stream idle timeout <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.stream_idle_timeout>` both enforced by the HTTP connection manager. The difference is that this idle timeout is enforced by the router for each individual attempt and thus after all previous filters have run, as opposed to *before* all previous filters run for the other idle timeouts. This timeout is useful in cases in which total request timeout is bounded by a number of retries and a :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, but there is a desire to ensure each try is making incremental progress. Note also that similar to :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, this idle timeout does not start until after both the entire request has been received by the router *and* a connection pool connection has been obtained. Unlike :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, the idle timer continues once the response starts streaming back to the downstream client. This ensures that response data continues to make progress without using one of the HTTP connection manager idle timeouts.
.google.protobuf.Duration per_try_idle_timeout = 13;
-
setPerTryIdleTimeout
public RetryPolicy.Builder setPerTryIdleTimeout(com.google.protobuf.Duration.Builder builderForValue)
Specifies an upstream idle timeout per retry attempt (including the initial attempt). This parameter is optional and if absent there is no per try idle timeout. The semantics of the per try idle timeout are similar to the :ref:`route idle timeout <envoy_v3_api_field_config.route.v3.RouteAction.timeout>` and :ref:`stream idle timeout <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.stream_idle_timeout>` both enforced by the HTTP connection manager. The difference is that this idle timeout is enforced by the router for each individual attempt and thus after all previous filters have run, as opposed to *before* all previous filters run for the other idle timeouts. This timeout is useful in cases in which total request timeout is bounded by a number of retries and a :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, but there is a desire to ensure each try is making incremental progress. Note also that similar to :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, this idle timeout does not start until after both the entire request has been received by the router *and* a connection pool connection has been obtained. Unlike :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, the idle timer continues once the response starts streaming back to the downstream client. This ensures that response data continues to make progress without using one of the HTTP connection manager idle timeouts.
.google.protobuf.Duration per_try_idle_timeout = 13;
-
mergePerTryIdleTimeout
public RetryPolicy.Builder mergePerTryIdleTimeout(com.google.protobuf.Duration value)
Specifies an upstream idle timeout per retry attempt (including the initial attempt). This parameter is optional and if absent there is no per try idle timeout. The semantics of the per try idle timeout are similar to the :ref:`route idle timeout <envoy_v3_api_field_config.route.v3.RouteAction.timeout>` and :ref:`stream idle timeout <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.stream_idle_timeout>` both enforced by the HTTP connection manager. The difference is that this idle timeout is enforced by the router for each individual attempt and thus after all previous filters have run, as opposed to *before* all previous filters run for the other idle timeouts. This timeout is useful in cases in which total request timeout is bounded by a number of retries and a :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, but there is a desire to ensure each try is making incremental progress. Note also that similar to :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, this idle timeout does not start until after both the entire request has been received by the router *and* a connection pool connection has been obtained. Unlike :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, the idle timer continues once the response starts streaming back to the downstream client. This ensures that response data continues to make progress without using one of the HTTP connection manager idle timeouts.
.google.protobuf.Duration per_try_idle_timeout = 13;
-
clearPerTryIdleTimeout
public RetryPolicy.Builder clearPerTryIdleTimeout()
Specifies an upstream idle timeout per retry attempt (including the initial attempt). This parameter is optional and if absent there is no per try idle timeout. The semantics of the per try idle timeout are similar to the :ref:`route idle timeout <envoy_v3_api_field_config.route.v3.RouteAction.timeout>` and :ref:`stream idle timeout <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.stream_idle_timeout>` both enforced by the HTTP connection manager. The difference is that this idle timeout is enforced by the router for each individual attempt and thus after all previous filters have run, as opposed to *before* all previous filters run for the other idle timeouts. This timeout is useful in cases in which total request timeout is bounded by a number of retries and a :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, but there is a desire to ensure each try is making incremental progress. Note also that similar to :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, this idle timeout does not start until after both the entire request has been received by the router *and* a connection pool connection has been obtained. Unlike :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, the idle timer continues once the response starts streaming back to the downstream client. This ensures that response data continues to make progress without using one of the HTTP connection manager idle timeouts.
.google.protobuf.Duration per_try_idle_timeout = 13;
-
getPerTryIdleTimeoutBuilder
public com.google.protobuf.Duration.Builder getPerTryIdleTimeoutBuilder()
Specifies an upstream idle timeout per retry attempt (including the initial attempt). This parameter is optional and if absent there is no per try idle timeout. The semantics of the per try idle timeout are similar to the :ref:`route idle timeout <envoy_v3_api_field_config.route.v3.RouteAction.timeout>` and :ref:`stream idle timeout <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.stream_idle_timeout>` both enforced by the HTTP connection manager. The difference is that this idle timeout is enforced by the router for each individual attempt and thus after all previous filters have run, as opposed to *before* all previous filters run for the other idle timeouts. This timeout is useful in cases in which total request timeout is bounded by a number of retries and a :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, but there is a desire to ensure each try is making incremental progress. Note also that similar to :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, this idle timeout does not start until after both the entire request has been received by the router *and* a connection pool connection has been obtained. Unlike :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, the idle timer continues once the response starts streaming back to the downstream client. This ensures that response data continues to make progress without using one of the HTTP connection manager idle timeouts.
.google.protobuf.Duration per_try_idle_timeout = 13;
-
getPerTryIdleTimeoutOrBuilder
public com.google.protobuf.DurationOrBuilder getPerTryIdleTimeoutOrBuilder()
Specifies an upstream idle timeout per retry attempt (including the initial attempt). This parameter is optional and if absent there is no per try idle timeout. The semantics of the per try idle timeout are similar to the :ref:`route idle timeout <envoy_v3_api_field_config.route.v3.RouteAction.timeout>` and :ref:`stream idle timeout <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.stream_idle_timeout>` both enforced by the HTTP connection manager. The difference is that this idle timeout is enforced by the router for each individual attempt and thus after all previous filters have run, as opposed to *before* all previous filters run for the other idle timeouts. This timeout is useful in cases in which total request timeout is bounded by a number of retries and a :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, but there is a desire to ensure each try is making incremental progress. Note also that similar to :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, this idle timeout does not start until after both the entire request has been received by the router *and* a connection pool connection has been obtained. Unlike :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, the idle timer continues once the response starts streaming back to the downstream client. This ensures that response data continues to make progress without using one of the HTTP connection manager idle timeouts.
.google.protobuf.Duration per_try_idle_timeout = 13;
- Specified by:
getPerTryIdleTimeoutOrBuilder
in interfaceRetryPolicyOrBuilder
-
getPerTryIdleTimeoutFieldBuilder
private com.google.protobuf.SingleFieldBuilder<com.google.protobuf.Duration,com.google.protobuf.Duration.Builder,com.google.protobuf.DurationOrBuilder> getPerTryIdleTimeoutFieldBuilder()
Specifies an upstream idle timeout per retry attempt (including the initial attempt). This parameter is optional and if absent there is no per try idle timeout. The semantics of the per try idle timeout are similar to the :ref:`route idle timeout <envoy_v3_api_field_config.route.v3.RouteAction.timeout>` and :ref:`stream idle timeout <envoy_v3_api_field_extensions.filters.network.http_connection_manager.v3.HttpConnectionManager.stream_idle_timeout>` both enforced by the HTTP connection manager. The difference is that this idle timeout is enforced by the router for each individual attempt and thus after all previous filters have run, as opposed to *before* all previous filters run for the other idle timeouts. This timeout is useful in cases in which total request timeout is bounded by a number of retries and a :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, but there is a desire to ensure each try is making incremental progress. Note also that similar to :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, this idle timeout does not start until after both the entire request has been received by the router *and* a connection pool connection has been obtained. Unlike :ref:`per_try_timeout <envoy_v3_api_field_config.route.v3.RetryPolicy.per_try_timeout>`, the idle timer continues once the response starts streaming back to the downstream client. This ensures that response data continues to make progress without using one of the HTTP connection manager idle timeouts.
.google.protobuf.Duration per_try_idle_timeout = 13;
-
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.config.route.v3.RetryPolicy.RetryPriority retry_priority = 4;
- Specified by:
hasRetryPriority
in 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.config.route.v3.RetryPolicy.RetryPriority retry_priority = 4;
- Specified by:
getRetryPriority
in 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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.RetryPolicy.RetryPriority retry_priority = 4;
- Specified by:
getRetryPriorityOrBuilder
in interfaceRetryPolicyOrBuilder
-
getRetryPriorityFieldBuilder
private com.google.protobuf.SingleFieldBuilder<RetryPolicy.RetryPriority,RetryPolicy.RetryPriority.Builder,RetryPolicy.RetryPriorityOrBuilder> getRetryPriorityFieldBuilder()
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.config.route.v3.RetryPolicy.RetryPriority retry_priority = 4;
-
ensureRetryHostPredicateIsMutable
private void ensureRetryHostPredicateIsMutable()
-
getRetryHostPredicateList
public java.util.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.config.route.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
- Specified by:
getRetryHostPredicateList
in 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.config.route.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
- Specified by:
getRetryHostPredicateCount
in 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.config.route.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
- Specified by:
getRetryHostPredicate
in 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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
addAllRetryHostPredicate
public RetryPolicy.Builder addAllRetryHostPredicate(java.lang.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
- Specified by:
getRetryHostPredicateOrBuilder
in interfaceRetryPolicyOrBuilder
-
getRetryHostPredicateOrBuilderList
public java.util.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.config.route.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
- Specified by:
getRetryHostPredicateOrBuilderList
in 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.config.route.v3.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.config.route.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
getRetryHostPredicateBuilderList
public java.util.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.config.route.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
-
getRetryHostPredicateFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<RetryPolicy.RetryHostPredicate,RetryPolicy.RetryHostPredicate.Builder,RetryPolicy.RetryHostPredicateOrBuilder> getRetryHostPredicateFieldBuilder()
-
ensureRetryOptionsPredicatesIsMutable
private void ensureRetryOptionsPredicatesIsMutable()
-
getRetryOptionsPredicatesList
public java.util.List<TypedExtensionConfig> getRetryOptionsPredicatesList()
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
- Specified by:
getRetryOptionsPredicatesList
in interfaceRetryPolicyOrBuilder
-
getRetryOptionsPredicatesCount
public int getRetryOptionsPredicatesCount()
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
- Specified by:
getRetryOptionsPredicatesCount
in interfaceRetryPolicyOrBuilder
-
getRetryOptionsPredicates
public TypedExtensionConfig getRetryOptionsPredicates(int index)
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
- Specified by:
getRetryOptionsPredicates
in interfaceRetryPolicyOrBuilder
-
setRetryOptionsPredicates
public RetryPolicy.Builder setRetryOptionsPredicates(int index, TypedExtensionConfig value)
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
setRetryOptionsPredicates
public RetryPolicy.Builder setRetryOptionsPredicates(int index, TypedExtensionConfig.Builder builderForValue)
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
addRetryOptionsPredicates
public RetryPolicy.Builder addRetryOptionsPredicates(TypedExtensionConfig value)
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
addRetryOptionsPredicates
public RetryPolicy.Builder addRetryOptionsPredicates(int index, TypedExtensionConfig value)
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
addRetryOptionsPredicates
public RetryPolicy.Builder addRetryOptionsPredicates(TypedExtensionConfig.Builder builderForValue)
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
addRetryOptionsPredicates
public RetryPolicy.Builder addRetryOptionsPredicates(int index, TypedExtensionConfig.Builder builderForValue)
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
addAllRetryOptionsPredicates
public RetryPolicy.Builder addAllRetryOptionsPredicates(java.lang.Iterable<? extends TypedExtensionConfig> values)
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
clearRetryOptionsPredicates
public RetryPolicy.Builder clearRetryOptionsPredicates()
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
removeRetryOptionsPredicates
public RetryPolicy.Builder removeRetryOptionsPredicates(int index)
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
getRetryOptionsPredicatesBuilder
public TypedExtensionConfig.Builder getRetryOptionsPredicatesBuilder(int index)
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
getRetryOptionsPredicatesOrBuilder
public TypedExtensionConfigOrBuilder getRetryOptionsPredicatesOrBuilder(int index)
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
- Specified by:
getRetryOptionsPredicatesOrBuilder
in interfaceRetryPolicyOrBuilder
-
getRetryOptionsPredicatesOrBuilderList
public java.util.List<? extends TypedExtensionConfigOrBuilder> getRetryOptionsPredicatesOrBuilderList()
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
- Specified by:
getRetryOptionsPredicatesOrBuilderList
in interfaceRetryPolicyOrBuilder
-
addRetryOptionsPredicatesBuilder
public TypedExtensionConfig.Builder addRetryOptionsPredicatesBuilder()
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
addRetryOptionsPredicatesBuilder
public TypedExtensionConfig.Builder addRetryOptionsPredicatesBuilder(int index)
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
getRetryOptionsPredicatesBuilderList
public java.util.List<TypedExtensionConfig.Builder> getRetryOptionsPredicatesBuilderList()
Retry options predicates that will be applied prior to retrying a request. These predicates allow customizing request behavior between retries. [#comment: add [#extension-category: envoy.retry_options_predicates] when there are built-in extensions]
repeated .envoy.config.core.v3.TypedExtensionConfig retry_options_predicates = 12;
-
getRetryOptionsPredicatesFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<TypedExtensionConfig,TypedExtensionConfig.Builder,TypedExtensionConfigOrBuilder> getRetryOptionsPredicatesFieldBuilder()
-
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:
getHostSelectionRetryMaxAttempts
in 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.
-
ensureRetriableStatusCodesIsMutable
private void ensureRetriableStatusCodesIsMutable()
-
getRetriableStatusCodesList
public java.util.List<java.lang.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:
getRetriableStatusCodesList
in 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:
getRetriableStatusCodesCount
in 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:
getRetriableStatusCodes
in 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(java.lang.Iterable<? extends java.lang.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 exponential 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.config.route.v3.RetryPolicy.RetryBackOff retry_back_off = 8;
- Specified by:
hasRetryBackOff
in interfaceRetryPolicyOrBuilder
- Returns:
- Whether the retryBackOff field is set.
-
getRetryBackOff
public RetryPolicy.RetryBackOff getRetryBackOff()
Specifies parameters that control exponential 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.config.route.v3.RetryPolicy.RetryBackOff retry_back_off = 8;
- Specified by:
getRetryBackOff
in interfaceRetryPolicyOrBuilder
- Returns:
- The retryBackOff.
-
setRetryBackOff
public RetryPolicy.Builder setRetryBackOff(RetryPolicy.RetryBackOff value)
Specifies parameters that control exponential 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.config.route.v3.RetryPolicy.RetryBackOff retry_back_off = 8;
-
setRetryBackOff
public RetryPolicy.Builder setRetryBackOff(RetryPolicy.RetryBackOff.Builder builderForValue)
Specifies parameters that control exponential 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.config.route.v3.RetryPolicy.RetryBackOff retry_back_off = 8;
-
mergeRetryBackOff
public RetryPolicy.Builder mergeRetryBackOff(RetryPolicy.RetryBackOff value)
Specifies parameters that control exponential 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.config.route.v3.RetryPolicy.RetryBackOff retry_back_off = 8;
-
clearRetryBackOff
public RetryPolicy.Builder clearRetryBackOff()
Specifies parameters that control exponential 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.config.route.v3.RetryPolicy.RetryBackOff retry_back_off = 8;
-
getRetryBackOffBuilder
public RetryPolicy.RetryBackOff.Builder getRetryBackOffBuilder()
Specifies parameters that control exponential 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.config.route.v3.RetryPolicy.RetryBackOff retry_back_off = 8;
-
getRetryBackOffOrBuilder
public RetryPolicy.RetryBackOffOrBuilder getRetryBackOffOrBuilder()
Specifies parameters that control exponential 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.config.route.v3.RetryPolicy.RetryBackOff retry_back_off = 8;
- Specified by:
getRetryBackOffOrBuilder
in interfaceRetryPolicyOrBuilder
-
getRetryBackOffFieldBuilder
private com.google.protobuf.SingleFieldBuilder<RetryPolicy.RetryBackOff,RetryPolicy.RetryBackOff.Builder,RetryPolicy.RetryBackOffOrBuilder> getRetryBackOffFieldBuilder()
Specifies parameters that control exponential 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.config.route.v3.RetryPolicy.RetryBackOff retry_back_off = 8;
-
hasRateLimitedRetryBackOff
public boolean hasRateLimitedRetryBackOff()
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server. The server may return a response header like ``Retry-After`` or ``X-RateLimit-Reset`` to provide feedback to the client on how long to wait before retrying. If configured, this back-off strategy will be used instead of the default exponential back off strategy (configured using ``retry_back_off``) whenever a response includes the matching headers.
.envoy.config.route.v3.RetryPolicy.RateLimitedRetryBackOff rate_limited_retry_back_off = 11;
- Specified by:
hasRateLimitedRetryBackOff
in interfaceRetryPolicyOrBuilder
- Returns:
- Whether the rateLimitedRetryBackOff field is set.
-
getRateLimitedRetryBackOff
public RetryPolicy.RateLimitedRetryBackOff getRateLimitedRetryBackOff()
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server. The server may return a response header like ``Retry-After`` or ``X-RateLimit-Reset`` to provide feedback to the client on how long to wait before retrying. If configured, this back-off strategy will be used instead of the default exponential back off strategy (configured using ``retry_back_off``) whenever a response includes the matching headers.
.envoy.config.route.v3.RetryPolicy.RateLimitedRetryBackOff rate_limited_retry_back_off = 11;
- Specified by:
getRateLimitedRetryBackOff
in interfaceRetryPolicyOrBuilder
- Returns:
- The rateLimitedRetryBackOff.
-
setRateLimitedRetryBackOff
public RetryPolicy.Builder setRateLimitedRetryBackOff(RetryPolicy.RateLimitedRetryBackOff value)
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server. The server may return a response header like ``Retry-After`` or ``X-RateLimit-Reset`` to provide feedback to the client on how long to wait before retrying. If configured, this back-off strategy will be used instead of the default exponential back off strategy (configured using ``retry_back_off``) whenever a response includes the matching headers.
.envoy.config.route.v3.RetryPolicy.RateLimitedRetryBackOff rate_limited_retry_back_off = 11;
-
setRateLimitedRetryBackOff
public RetryPolicy.Builder setRateLimitedRetryBackOff(RetryPolicy.RateLimitedRetryBackOff.Builder builderForValue)
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server. The server may return a response header like ``Retry-After`` or ``X-RateLimit-Reset`` to provide feedback to the client on how long to wait before retrying. If configured, this back-off strategy will be used instead of the default exponential back off strategy (configured using ``retry_back_off``) whenever a response includes the matching headers.
.envoy.config.route.v3.RetryPolicy.RateLimitedRetryBackOff rate_limited_retry_back_off = 11;
-
mergeRateLimitedRetryBackOff
public RetryPolicy.Builder mergeRateLimitedRetryBackOff(RetryPolicy.RateLimitedRetryBackOff value)
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server. The server may return a response header like ``Retry-After`` or ``X-RateLimit-Reset`` to provide feedback to the client on how long to wait before retrying. If configured, this back-off strategy will be used instead of the default exponential back off strategy (configured using ``retry_back_off``) whenever a response includes the matching headers.
.envoy.config.route.v3.RetryPolicy.RateLimitedRetryBackOff rate_limited_retry_back_off = 11;
-
clearRateLimitedRetryBackOff
public RetryPolicy.Builder clearRateLimitedRetryBackOff()
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server. The server may return a response header like ``Retry-After`` or ``X-RateLimit-Reset`` to provide feedback to the client on how long to wait before retrying. If configured, this back-off strategy will be used instead of the default exponential back off strategy (configured using ``retry_back_off``) whenever a response includes the matching headers.
.envoy.config.route.v3.RetryPolicy.RateLimitedRetryBackOff rate_limited_retry_back_off = 11;
-
getRateLimitedRetryBackOffBuilder
public RetryPolicy.RateLimitedRetryBackOff.Builder getRateLimitedRetryBackOffBuilder()
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server. The server may return a response header like ``Retry-After`` or ``X-RateLimit-Reset`` to provide feedback to the client on how long to wait before retrying. If configured, this back-off strategy will be used instead of the default exponential back off strategy (configured using ``retry_back_off``) whenever a response includes the matching headers.
.envoy.config.route.v3.RetryPolicy.RateLimitedRetryBackOff rate_limited_retry_back_off = 11;
-
getRateLimitedRetryBackOffOrBuilder
public RetryPolicy.RateLimitedRetryBackOffOrBuilder getRateLimitedRetryBackOffOrBuilder()
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server. The server may return a response header like ``Retry-After`` or ``X-RateLimit-Reset`` to provide feedback to the client on how long to wait before retrying. If configured, this back-off strategy will be used instead of the default exponential back off strategy (configured using ``retry_back_off``) whenever a response includes the matching headers.
.envoy.config.route.v3.RetryPolicy.RateLimitedRetryBackOff rate_limited_retry_back_off = 11;
- Specified by:
getRateLimitedRetryBackOffOrBuilder
in interfaceRetryPolicyOrBuilder
-
getRateLimitedRetryBackOffFieldBuilder
private com.google.protobuf.SingleFieldBuilder<RetryPolicy.RateLimitedRetryBackOff,RetryPolicy.RateLimitedRetryBackOff.Builder,RetryPolicy.RateLimitedRetryBackOffOrBuilder> getRateLimitedRetryBackOffFieldBuilder()
Specifies parameters that control a retry back-off strategy that is used when the request is rate limited by the upstream server. The server may return a response header like ``Retry-After`` or ``X-RateLimit-Reset`` to provide feedback to the client on how long to wait before retrying. If configured, this back-off strategy will be used instead of the default exponential back off strategy (configured using ``retry_back_off``) whenever a response includes the matching headers.
.envoy.config.route.v3.RetryPolicy.RateLimitedRetryBackOff rate_limited_retry_back_off = 11;
-
ensureRetriableHeadersIsMutable
private void ensureRetriableHeadersIsMutable()
-
getRetriableHeadersList
public java.util.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.config.route.v3.HeaderMatcher retriable_headers = 9;
- Specified by:
getRetriableHeadersList
in 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.config.route.v3.HeaderMatcher retriable_headers = 9;
- Specified by:
getRetriableHeadersCount
in 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.config.route.v3.HeaderMatcher retriable_headers = 9;
- Specified by:
getRetriableHeaders
in 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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.HeaderMatcher retriable_headers = 9;
-
addAllRetriableHeaders
public RetryPolicy.Builder addAllRetriableHeaders(java.lang.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.HeaderMatcher retriable_headers = 9;
- Specified by:
getRetriableHeadersOrBuilder
in interfaceRetryPolicyOrBuilder
-
getRetriableHeadersOrBuilderList
public java.util.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.config.route.v3.HeaderMatcher retriable_headers = 9;
- Specified by:
getRetriableHeadersOrBuilderList
in 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.config.route.v3.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.config.route.v3.HeaderMatcher retriable_headers = 9;
-
getRetriableHeadersBuilderList
public java.util.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.config.route.v3.HeaderMatcher retriable_headers = 9;
-
getRetriableHeadersFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<HeaderMatcher,HeaderMatcher.Builder,HeaderMatcherOrBuilder> getRetriableHeadersFieldBuilder()
-
ensureRetriableRequestHeadersIsMutable
private void ensureRetriableRequestHeadersIsMutable()
-
getRetriableRequestHeadersList
public java.util.List<HeaderMatcher> getRetriableRequestHeadersList()
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.config.route.v3.HeaderMatcher retriable_request_headers = 10;
- Specified by:
getRetriableRequestHeadersList
in interfaceRetryPolicyOrBuilder
-
getRetriableRequestHeadersCount
public int getRetriableRequestHeadersCount()
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.config.route.v3.HeaderMatcher retriable_request_headers = 10;
- Specified by:
getRetriableRequestHeadersCount
in interfaceRetryPolicyOrBuilder
-
getRetriableRequestHeaders
public HeaderMatcher getRetriableRequestHeaders(int index)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.config.route.v3.HeaderMatcher retriable_request_headers = 10;
- Specified by:
getRetriableRequestHeaders
in 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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.HeaderMatcher retriable_request_headers = 10;
-
addAllRetriableRequestHeaders
public RetryPolicy.Builder addAllRetriableRequestHeaders(java.lang.Iterable<? extends HeaderMatcher> values)
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.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.config.route.v3.HeaderMatcher retriable_request_headers = 10;
- Specified by:
getRetriableRequestHeadersOrBuilder
in interfaceRetryPolicyOrBuilder
-
getRetriableRequestHeadersOrBuilderList
public java.util.List<? extends HeaderMatcherOrBuilder> getRetriableRequestHeadersOrBuilderList()
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.config.route.v3.HeaderMatcher retriable_request_headers = 10;
- Specified by:
getRetriableRequestHeadersOrBuilderList
in interfaceRetryPolicyOrBuilder
-
addRetriableRequestHeadersBuilder
public HeaderMatcher.Builder addRetriableRequestHeadersBuilder()
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.config.route.v3.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.config.route.v3.HeaderMatcher retriable_request_headers = 10;
-
getRetriableRequestHeadersBuilderList
public java.util.List<HeaderMatcher.Builder> getRetriableRequestHeadersBuilderList()
HTTP headers which must be present in the request for retries to be attempted.
repeated .envoy.config.route.v3.HeaderMatcher retriable_request_headers = 10;
-
getRetriableRequestHeadersFieldBuilder
private com.google.protobuf.RepeatedFieldBuilder<HeaderMatcher,HeaderMatcher.Builder,HeaderMatcherOrBuilder> getRetriableRequestHeadersFieldBuilder()
-
-