public final class RetryPolicy extends com.google.protobuf.GeneratedMessageV3 implements RetryPolicyOrBuilder
HTTP retry :ref:`architecture overview <arch_overview_http_routing_retry>`. [#next-free-field: 12]Protobuf type
envoy.config.route.v3.RetryPolicy
Modifier and Type | Class and Description |
---|---|
static class |
RetryPolicy.Builder
HTTP retry :ref:`architecture overview <arch_overview_http_routing_retry>`.
|
static class |
RetryPolicy.RateLimitedRetryBackOff
A retry back-off strategy that applies when the upstream server rate limits
the request.
|
static interface |
RetryPolicy.RateLimitedRetryBackOffOrBuilder |
static class |
RetryPolicy.ResetHeader
Protobuf type
envoy.config.route.v3.RetryPolicy.ResetHeader |
static class |
RetryPolicy.ResetHeaderFormat
Protobuf enum
envoy.config.route.v3.RetryPolicy.ResetHeaderFormat |
static interface |
RetryPolicy.ResetHeaderOrBuilder |
static class |
RetryPolicy.RetryBackOff
Protobuf type
envoy.config.route.v3.RetryPolicy.RetryBackOff |
static interface |
RetryPolicy.RetryBackOffOrBuilder |
static class |
RetryPolicy.RetryHostPredicate
Protobuf type
envoy.config.route.v3.RetryPolicy.RetryHostPredicate |
static interface |
RetryPolicy.RetryHostPredicateOrBuilder |
static class |
RetryPolicy.RetryPriority
Protobuf type
envoy.config.route.v3.RetryPolicy.RetryPriority |
static interface |
RetryPolicy.RetryPriorityOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
HOST_SELECTION_RETRY_MAX_ATTEMPTS_FIELD_NUMBER |
static int |
NUM_RETRIES_FIELD_NUMBER |
static int |
PER_TRY_TIMEOUT_FIELD_NUMBER |
static int |
RATE_LIMITED_RETRY_BACK_OFF_FIELD_NUMBER |
static int |
RETRIABLE_HEADERS_FIELD_NUMBER |
static int |
RETRIABLE_REQUEST_HEADERS_FIELD_NUMBER |
static int |
RETRIABLE_STATUS_CODES_FIELD_NUMBER |
static int |
RETRY_BACK_OFF_FIELD_NUMBER |
static int |
RETRY_HOST_PREDICATE_FIELD_NUMBER |
static int |
RETRY_ON_FIELD_NUMBER |
static int |
RETRY_PRIORITY_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static RetryPolicy |
getDefaultInstance() |
RetryPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.UInt32ValueOrBuilder |
getNumRetriesOrBuilder()
Specifies the allowed number of retries.
|
com.google.protobuf.Parser<RetryPolicy> |
getParserForType() |
com.google.protobuf.Duration |
getPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt.
|
com.google.protobuf.DurationOrBuilder |
getPerTryTimeoutOrBuilder()
Specifies a non-zero upstream timeout per retry 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.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.
|
int |
getRetriableHeadersCount()
HTTP response headers that trigger a retry if present in the response.
|
List<HeaderMatcher> |
getRetriableHeadersList()
HTTP response headers that trigger a retry if present in the response.
|
HeaderMatcherOrBuilder |
getRetriableHeadersOrBuilder(int index)
HTTP response headers that trigger a retry if present in the response.
|
List<? extends HeaderMatcherOrBuilder> |
getRetriableHeadersOrBuilderList()
HTTP response headers that trigger a retry if present in the response.
|
HeaderMatcher |
getRetriableRequestHeaders(int index)
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.
|
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.
|
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.
|
List<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.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.
|
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.RetryPriorityOrBuilder |
getRetryPriorityOrBuilder()
Specifies an implementation of a RetryPriority which is used to determine the
distribution of load across priorities used for retries.
|
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
hasNumRetries()
Specifies the allowed number of retries.
|
boolean |
hasPerTryTimeout()
Specifies a non-zero upstream timeout per retry 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.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RetryPolicy.Builder |
newBuilder() |
static RetryPolicy.Builder |
newBuilder(RetryPolicy prototype) |
RetryPolicy.Builder |
newBuilderForType() |
protected RetryPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RetryPolicy |
parseDelimitedFrom(InputStream input) |
static RetryPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RetryPolicy |
parseFrom(byte[] data) |
static RetryPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RetryPolicy |
parseFrom(ByteBuffer data) |
static RetryPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RetryPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static RetryPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RetryPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RetryPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RetryPolicy |
parseFrom(InputStream input) |
static RetryPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RetryPolicy> |
parser() |
RetryPolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int RETRY_ON_FIELD_NUMBER
public static final int NUM_RETRIES_FIELD_NUMBER
public static final int PER_TRY_TIMEOUT_FIELD_NUMBER
public static final int RETRY_PRIORITY_FIELD_NUMBER
public static final int RETRY_HOST_PREDICATE_FIELD_NUMBER
public static final int HOST_SELECTION_RETRY_MAX_ATTEMPTS_FIELD_NUMBER
public static final int RETRIABLE_STATUS_CODES_FIELD_NUMBER
public static final int RETRY_BACK_OFF_FIELD_NUMBER
public static final int RATE_LIMITED_RETRY_BACK_OFF_FIELD_NUMBER
public static final int RETRIABLE_HEADERS_FIELD_NUMBER
public static final int RETRIABLE_REQUEST_HEADERS_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public String getRetryOn()
Specifies the conditions under which retry takes place. These are the same conditions documented for :ref:`config_http_filters_router_x-envoy-retry-on` and :ref:`config_http_filters_router_x-envoy-retry-grpc-on`.
string retry_on = 1;
getRetryOn
in interface RetryPolicyOrBuilder
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;
getRetryOnBytes
in interface RetryPolicyOrBuilder
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) = { ... }
hasNumRetries
in interface RetryPolicyOrBuilder
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) = { ... }
getNumRetries
in interface RetryPolicyOrBuilder
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) = { ... }
getNumRetriesOrBuilder
in interface RetryPolicyOrBuilder
public boolean hasPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_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;
hasPerTryTimeout
in interface RetryPolicyOrBuilder
public com.google.protobuf.Duration getPerTryTimeout()
Specifies a non-zero upstream timeout per retry attempt. This parameter is optional. The same conditions documented for :ref:`config_http_filters_router_x-envoy-upstream-rq-per-try-timeout-ms` apply. .. note:: If left unspecified, Envoy will use the global :ref:`route timeout <envoy_api_field_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;
getPerTryTimeout
in interface RetryPolicyOrBuilder
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_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
in interface RetryPolicyOrBuilder
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;
hasRetryPriority
in interface RetryPolicyOrBuilder
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;
getRetryPriority
in interface RetryPolicyOrBuilder
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;
getRetryPriorityOrBuilder
in interface RetryPolicyOrBuilder
public List<RetryPolicy.RetryHostPredicate> getRetryHostPredicateList()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.config.route.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
getRetryHostPredicateList
in interface RetryPolicyOrBuilder
public List<? extends RetryPolicy.RetryHostPredicateOrBuilder> getRetryHostPredicateOrBuilderList()
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host for retries. If any of the predicates reject the host, host selection will be reattempted. Refer to :ref:`retry plugin configuration <arch_overview_http_retry_plugins>` for more details.
repeated .envoy.config.route.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;
getRetryHostPredicateOrBuilderList
in interface RetryPolicyOrBuilder
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;
getRetryHostPredicateCount
in interface RetryPolicyOrBuilder
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;
getRetryHostPredicate
in interface RetryPolicyOrBuilder
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;
getRetryHostPredicateOrBuilder
in interface RetryPolicyOrBuilder
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 RetryPolicyOrBuilder
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 RetryPolicyOrBuilder
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;
getRetriableStatusCodesCount
in interface RetryPolicyOrBuilder
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;
getRetriableStatusCodes
in interface RetryPolicyOrBuilder
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;
hasRetryBackOff
in interface RetryPolicyOrBuilder
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;
getRetryBackOff
in interface RetryPolicyOrBuilder
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;
getRetryBackOffOrBuilder
in interface RetryPolicyOrBuilder
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;
hasRateLimitedRetryBackOff
in interface RetryPolicyOrBuilder
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;
getRateLimitedRetryBackOff
in interface RetryPolicyOrBuilder
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;
getRateLimitedRetryBackOffOrBuilder
in interface RetryPolicyOrBuilder
public List<HeaderMatcher> getRetriableHeadersList()
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.config.route.v3.HeaderMatcher retriable_headers = 9;
getRetriableHeadersList
in interface RetryPolicyOrBuilder
public List<? extends HeaderMatcherOrBuilder> getRetriableHeadersOrBuilderList()
HTTP response headers that trigger a retry if present in the response. A retry will be triggered if any of the header matches match the upstream response headers. The field is only consulted if 'retriable-headers' retry policy is active.
repeated .envoy.config.route.v3.HeaderMatcher retriable_headers = 9;
getRetriableHeadersOrBuilderList
in interface RetryPolicyOrBuilder
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;
getRetriableHeadersCount
in interface RetryPolicyOrBuilder
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;
getRetriableHeaders
in interface RetryPolicyOrBuilder
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;
getRetriableHeadersOrBuilder
in interface RetryPolicyOrBuilder
public 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;
getRetriableRequestHeadersList
in interface RetryPolicyOrBuilder
public 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;
getRetriableRequestHeadersOrBuilderList
in interface RetryPolicyOrBuilder
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;
getRetriableRequestHeadersCount
in interface RetryPolicyOrBuilder
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;
getRetriableRequestHeaders
in interface RetryPolicyOrBuilder
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;
getRetriableRequestHeadersOrBuilder
in interface RetryPolicyOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static RetryPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static RetryPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static RetryPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static RetryPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static RetryPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static RetryPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static RetryPolicy parseFrom(InputStream input) throws IOException
IOException
public static RetryPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static RetryPolicy parseDelimitedFrom(InputStream input) throws IOException
IOException
public static RetryPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static RetryPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static RetryPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public RetryPolicy.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static RetryPolicy.Builder newBuilder()
public static RetryPolicy.Builder newBuilder(RetryPolicy prototype)
public RetryPolicy.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected RetryPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static RetryPolicy getDefaultInstance()
public static com.google.protobuf.Parser<RetryPolicy> parser()
public com.google.protobuf.Parser<RetryPolicy> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public RetryPolicy getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2018–2021 The Envoy Project. All rights reserved.