public static final class RetryPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder> implements RetryPolicyOrBuilder
HTTP retry :ref:`architecture overview <arch_overview_http_routing_retry>`.Protobuf type
envoy.api.v2.route.RetryPolicy| Modifier and Type | Method and Description |
|---|---|
RetryPolicy.Builder |
addAllRetriableStatusCodes(Iterable<? extends Integer> values)
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
|
RetryPolicy.Builder |
addAllRetryHostPredicate(Iterable<? extends RetryPolicy.RetryHostPredicate> values)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host
for retries.
|
RetryPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.Builder builderForValue)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host
for retries.
|
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(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.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 |
build() |
RetryPolicy |
buildPartial() |
RetryPolicy.Builder |
clear() |
RetryPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
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 |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RetryPolicy.Builder |
clearPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt.
|
RetryPolicy.Builder |
clearRetriableStatusCodes()
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
|
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 |
clearRetryPriority()
Specifies an implementation of a RetryPriority which is used to determine the
distribution of load across priorities used for retries.
|
RetryPolicy.Builder |
clone() |
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.
|
com.google.protobuf.UInt32ValueOrBuilder |
getNumRetriesOrBuilder()
Specifies the allowed number of retries.
|
com.google.protobuf.Duration |
getPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt.
|
com.google.protobuf.Duration.Builder |
getPerTryTimeoutBuilder()
Specifies a non-zero upstream timeout per retry attempt.
|
com.google.protobuf.DurationOrBuilder |
getPerTryTimeoutOrBuilder()
Specifies a non-zero upstream timeout per retry attempt.
|
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.
|
List<Integer> |
getRetriableStatusCodesList()
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
|
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.
|
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.
|
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.
|
List<? extends RetryPolicy.RetryHostPredicateOrBuilder> |
getRetryHostPredicateOrBuilderList()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host
for retries.
|
String |
getRetryOn()
Specifies the conditions under which retry takes place.
|
com.google.protobuf.ByteString |
getRetryOnBytes()
Specifies the conditions under which retry takes place.
|
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.
|
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 |
hasPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt.
|
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.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
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 |
mergePerTryTimeout(com.google.protobuf.Duration value)
Specifies a non-zero upstream timeout per retry attempt.
|
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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RetryPolicy.Builder |
removeRetryHostPredicate(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host
for retries.
|
RetryPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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.Builder builderForValue)
Specifies the allowed number of retries.
|
RetryPolicy.Builder |
setNumRetries(com.google.protobuf.UInt32Value value)
Specifies the allowed number of retries.
|
RetryPolicy.Builder |
setPerTryTimeout(com.google.protobuf.Duration.Builder builderForValue)
Specifies a non-zero upstream timeout per retry attempt.
|
RetryPolicy.Builder |
setPerTryTimeout(com.google.protobuf.Duration value)
Specifies a non-zero upstream timeout per retry attempt.
|
RetryPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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 |
setRetryHostPredicate(int index,
RetryPolicy.RetryHostPredicate.Builder builderForValue)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host
for retries.
|
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 |
setRetryOn(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 |
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.
|
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 |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>public RetryPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>public RetryPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RetryPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RetryPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RetryPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>public RetryPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>public RetryPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>public RetryPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>public RetryPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>public RetryPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>public RetryPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RetryPolicy.Builder>public RetryPolicy.Builder mergeFrom(RetryPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>public RetryPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RetryPolicy.Builder>IOExceptionpublic 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;getRetryOn in interface RetryPolicyOrBuilderpublic 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;getRetryOnBytes in interface RetryPolicyOrBuilderpublic RetryPolicy.Builder setRetryOn(String value)
Specifies the conditions under which retry takes place. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-retry-on` and :ref:`config_http_filters_router_x-envoy-retry-grpc-on`.
string retry_on = 1;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;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;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;hasNumRetries in interface RetryPolicyOrBuilderpublic 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;getNumRetries in interface RetryPolicyOrBuilderpublic 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;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;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;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;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;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;getNumRetriesOrBuilder in interface RetryPolicyOrBuilderpublic boolean hasPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3 [(.gogoproto.stdduration) = true];hasPerTryTimeout in interface RetryPolicyOrBuilderpublic com.google.protobuf.Duration getPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3 [(.gogoproto.stdduration) = true];getPerTryTimeout in interface RetryPolicyOrBuilderpublic RetryPolicy.Builder setPerTryTimeout(com.google.protobuf.Duration value)
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3 [(.gogoproto.stdduration) = true];public RetryPolicy.Builder setPerTryTimeout(com.google.protobuf.Duration.Builder builderForValue)
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3 [(.gogoproto.stdduration) = true];public RetryPolicy.Builder mergePerTryTimeout(com.google.protobuf.Duration value)
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3 [(.gogoproto.stdduration) = true];public RetryPolicy.Builder clearPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3 [(.gogoproto.stdduration) = true];public com.google.protobuf.Duration.Builder getPerTryTimeoutBuilder()
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3 [(.gogoproto.stdduration) = true];public com.google.protobuf.DurationOrBuilder getPerTryTimeoutOrBuilder()
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_route.RouteAction.timeout>` for the request. Consequently, when using a :ref:`5xx <config_http_filters_router_x-envoy-retry-on>` based retry policy, a request that times out will not be retried as the total timeout budget would have been exhausted.
.google.protobuf.Duration per_try_timeout = 3 [(.gogoproto.stdduration) = true];getPerTryTimeoutOrBuilder in interface RetryPolicyOrBuilderpublic boolean hasRetryPriority()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;hasRetryPriority in interface RetryPolicyOrBuilderpublic RetryPolicy.RetryPriority getRetryPriority()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;getRetryPriority in interface RetryPolicyOrBuilderpublic RetryPolicy.Builder setRetryPriority(RetryPolicy.RetryPriority value)
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;public RetryPolicy.Builder setRetryPriority(RetryPolicy.RetryPriority.Builder builderForValue)
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;public RetryPolicy.Builder mergeRetryPriority(RetryPolicy.RetryPriority value)
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;public RetryPolicy.Builder clearRetryPriority()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;public RetryPolicy.RetryPriority.Builder getRetryPriorityBuilder()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;public RetryPolicy.RetryPriorityOrBuilder getRetryPriorityOrBuilder()
Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
.envoy.api.v2.route.RetryPolicy.RetryPriority retry_priority = 4;getRetryPriorityOrBuilder in interface RetryPolicyOrBuilderpublic List<RetryPolicy.RetryHostPredicate> getRetryHostPredicateList()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;getRetryHostPredicateList in interface RetryPolicyOrBuilderpublic int getRetryHostPredicateCount()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;getRetryHostPredicateCount in interface RetryPolicyOrBuilderpublic RetryPolicy.RetryHostPredicate getRetryHostPredicate(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;getRetryHostPredicate in interface RetryPolicyOrBuilderpublic RetryPolicy.Builder setRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate value)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;public RetryPolicy.Builder setRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate.Builder builderForValue)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;public RetryPolicy.Builder addRetryHostPredicate(RetryPolicy.RetryHostPredicate value)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;public RetryPolicy.Builder addRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate value)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;public RetryPolicy.Builder addRetryHostPredicate(RetryPolicy.RetryHostPredicate.Builder builderForValue)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;public RetryPolicy.Builder addRetryHostPredicate(int index, RetryPolicy.RetryHostPredicate.Builder builderForValue)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;public RetryPolicy.Builder addAllRetryHostPredicate(Iterable<? extends RetryPolicy.RetryHostPredicate> values)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;public RetryPolicy.Builder clearRetryHostPredicate()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;public RetryPolicy.Builder removeRetryHostPredicate(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;public RetryPolicy.RetryHostPredicate.Builder getRetryHostPredicateBuilder(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;public RetryPolicy.RetryHostPredicateOrBuilder getRetryHostPredicateOrBuilder(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;getRetryHostPredicateOrBuilder in interface RetryPolicyOrBuilderpublic List<? extends RetryPolicy.RetryHostPredicateOrBuilder> getRetryHostPredicateOrBuilderList()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;getRetryHostPredicateOrBuilderList in interface RetryPolicyOrBuilderpublic RetryPolicy.RetryHostPredicate.Builder addRetryHostPredicateBuilder()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;public RetryPolicy.RetryHostPredicate.Builder addRetryHostPredicateBuilder(int index)
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;public List<RetryPolicy.RetryHostPredicate.Builder> getRetryHostPredicateBuilderList()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.api.v2.route.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;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;getHostSelectionRetryMaxAttempts in interface RetryPolicyOrBuilderpublic 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;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;public List<Integer> getRetriableStatusCodesList()
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
repeated uint32 retriable_status_codes = 7;getRetriableStatusCodesList in interface RetryPolicyOrBuilderpublic int getRetriableStatusCodesCount()
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
repeated uint32 retriable_status_codes = 7;getRetriableStatusCodesCount in interface RetryPolicyOrBuilderpublic 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;getRetriableStatusCodes in interface RetryPolicyOrBuilderpublic 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;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;public RetryPolicy.Builder addAllRetriableStatusCodes(Iterable<? extends Integer> values)
HTTP status codes that should trigger a retry in addition to those specified by retry_on.
repeated uint32 retriable_status_codes = 7;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;public final RetryPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>public final RetryPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RetryPolicy.Builder>Copyright © 2018–2019 The Envoy Project. All rights reserved.