public static final class RouteOuterClass.RouteAction.RetryPolicy extends com.google.protobuf.GeneratedMessageV3 implements RouteOuterClass.RouteAction.RetryPolicyOrBuilder
HTTP retry :ref:`architecture overview <arch_overview_http_routing_retry>`.Protobuf type
envoy.api.v2.route.RouteAction.RetryPolicy| Modifier and Type | Class and Description |
|---|---|
static class |
RouteOuterClass.RouteAction.RetryPolicy.Builder
HTTP retry :ref:`architecture overview <arch_overview_http_routing_retry>`.
|
static class |
RouteOuterClass.RouteAction.RetryPolicy.RetryHostPredicate
Protobuf type
envoy.api.v2.route.RouteAction.RetryPolicy.RetryHostPredicate |
static interface |
RouteOuterClass.RouteAction.RetryPolicy.RetryHostPredicateOrBuilder |
static class |
RouteOuterClass.RouteAction.RetryPolicy.RetryPriority
Protobuf type
envoy.api.v2.route.RouteAction.RetryPolicy.RetryPriority |
static interface |
RouteOuterClass.RouteAction.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| 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 |
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 RouteOuterClass.RouteAction.RetryPolicy |
getDefaultInstance() |
RouteOuterClass.RouteAction.RetryPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
long |
getHostSelectionRetryMaxAttempts()
[#not-implemented-hide:]
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<RouteOuterClass.RouteAction.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.
|
RouteOuterClass.RouteAction.RetryPolicy.RetryHostPredicate |
getRetryHostPredicate(int index)
[#not-implemented-hide:]
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host
for retries.
|
int |
getRetryHostPredicateCount()
[#not-implemented-hide:]
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host
for retries.
|
List<RouteOuterClass.RouteAction.RetryPolicy.RetryHostPredicate> |
getRetryHostPredicateList()
[#not-implemented-hide:]
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host
for retries.
|
RouteOuterClass.RouteAction.RetryPolicy.RetryHostPredicateOrBuilder |
getRetryHostPredicateOrBuilder(int index)
[#not-implemented-hide:]
Specifies a collection of RetryHostPredicates that will be consulted when selecting a host
for retries.
|
List<? extends RouteOuterClass.RouteAction.RetryPolicy.RetryHostPredicateOrBuilder> |
getRetryHostPredicateOrBuilderList()
[#not-implemented-hide:]
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.
|
RouteOuterClass.RouteAction.RetryPolicy.RetryPriority |
getRetryPriority()
[#not-implemented-hide:]
Specifies an implementation of a RetryPriority which is used to determine the
distribution of load across priorities used for retries.
|
RouteOuterClass.RouteAction.RetryPolicy.RetryPriorityOrBuilder |
getRetryPriorityOrBuilder()
[#not-implemented-hide:]
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 |
hasRetryPriority()
[#not-implemented-hide:]
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 RouteOuterClass.RouteAction.RetryPolicy.Builder |
newBuilder() |
static RouteOuterClass.RouteAction.RetryPolicy.Builder |
newBuilder(RouteOuterClass.RouteAction.RetryPolicy prototype) |
RouteOuterClass.RouteAction.RetryPolicy.Builder |
newBuilderForType() |
protected RouteOuterClass.RouteAction.RetryPolicy.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static RouteOuterClass.RouteAction.RetryPolicy |
parseDelimitedFrom(InputStream input) |
static RouteOuterClass.RouteAction.RetryPolicy |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteOuterClass.RouteAction.RetryPolicy |
parseFrom(byte[] data) |
static RouteOuterClass.RouteAction.RetryPolicy |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteOuterClass.RouteAction.RetryPolicy |
parseFrom(ByteBuffer data) |
static RouteOuterClass.RouteAction.RetryPolicy |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteOuterClass.RouteAction.RetryPolicy |
parseFrom(com.google.protobuf.ByteString data) |
static RouteOuterClass.RouteAction.RetryPolicy |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteOuterClass.RouteAction.RetryPolicy |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RouteOuterClass.RouteAction.RetryPolicy |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteOuterClass.RouteAction.RetryPolicy |
parseFrom(InputStream input) |
static RouteOuterClass.RouteAction.RetryPolicy |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RouteOuterClass.RouteAction.RetryPolicy> |
parser() |
RouteOuterClass.RouteAction.RetryPolicy.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic 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 final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 RouteOuterClass.RouteAction.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 RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic 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 RouteOuterClass.RouteAction.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 RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic 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 RouteOuterClass.RouteAction.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 RouteOuterClass.RouteAction.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 RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic 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 RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic boolean hasRetryPriority()
[#not-implemented-hide:] Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.
.envoy.api.v2.route.RouteAction.RetryPolicy.RetryPriority retry_priority = 4;hasRetryPriority in interface RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic RouteOuterClass.RouteAction.RetryPolicy.RetryPriority getRetryPriority()
[#not-implemented-hide:] Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.
.envoy.api.v2.route.RouteAction.RetryPolicy.RetryPriority retry_priority = 4;getRetryPriority in interface RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic RouteOuterClass.RouteAction.RetryPolicy.RetryPriorityOrBuilder getRetryPriorityOrBuilder()
[#not-implemented-hide:] Specifies an implementation of a RetryPriority which is used to determine the distribution of load across priorities used for retries.
.envoy.api.v2.route.RouteAction.RetryPolicy.RetryPriority retry_priority = 4;getRetryPriorityOrBuilder in interface RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic List<RouteOuterClass.RouteAction.RetryPolicy.RetryHostPredicate> getRetryHostPredicateList()
[#not-implemented-hide:] 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.
repeated .envoy.api.v2.route.RouteAction.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;getRetryHostPredicateList in interface RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic List<? extends RouteOuterClass.RouteAction.RetryPolicy.RetryHostPredicateOrBuilder> getRetryHostPredicateOrBuilderList()
[#not-implemented-hide:] 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.
repeated .envoy.api.v2.route.RouteAction.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;getRetryHostPredicateOrBuilderList in interface RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic int getRetryHostPredicateCount()
[#not-implemented-hide:] 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.
repeated .envoy.api.v2.route.RouteAction.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;getRetryHostPredicateCount in interface RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic RouteOuterClass.RouteAction.RetryPolicy.RetryHostPredicate getRetryHostPredicate(int index)
[#not-implemented-hide:] 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.
repeated .envoy.api.v2.route.RouteAction.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;getRetryHostPredicate in interface RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic RouteOuterClass.RouteAction.RetryPolicy.RetryHostPredicateOrBuilder getRetryHostPredicateOrBuilder(int index)
[#not-implemented-hide:] 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.
repeated .envoy.api.v2.route.RouteAction.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;getRetryHostPredicateOrBuilder in interface RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic long getHostSelectionRetryMaxAttempts()
[#not-implemented-hide:] 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 RouteOuterClass.RouteAction.RetryPolicyOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RouteOuterClass.RouteAction.RetryPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteOuterClass.RouteAction.RetryPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteOuterClass.RouteAction.RetryPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteOuterClass.RouteAction.RetryPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteOuterClass.RouteAction.RetryPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteOuterClass.RouteAction.RetryPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteOuterClass.RouteAction.RetryPolicy parseFrom(InputStream input) throws IOException
IOExceptionpublic static RouteOuterClass.RouteAction.RetryPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteOuterClass.RouteAction.RetryPolicy parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RouteOuterClass.RouteAction.RetryPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteOuterClass.RouteAction.RetryPolicy parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RouteOuterClass.RouteAction.RetryPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RouteOuterClass.RouteAction.RetryPolicy.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RouteOuterClass.RouteAction.RetryPolicy.Builder newBuilder()
public static RouteOuterClass.RouteAction.RetryPolicy.Builder newBuilder(RouteOuterClass.RouteAction.RetryPolicy prototype)
public RouteOuterClass.RouteAction.RetryPolicy.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RouteOuterClass.RouteAction.RetryPolicy.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RouteOuterClass.RouteAction.RetryPolicy getDefaultInstance()
public static com.google.protobuf.Parser<RouteOuterClass.RouteAction.RetryPolicy> parser()
public com.google.protobuf.Parser<RouteOuterClass.RouteAction.RetryPolicy> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RouteOuterClass.RouteAction.RetryPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018 The Envoy Project. All rights reserved.