Class RetryPolicy
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.envoyproxy.envoy.config.core.v3.RetryPolicy
- All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RetryPolicyOrBuilder, Serializable
@Generated
public final class RetryPolicy
extends com.google.protobuf.GeneratedMessage
implements RetryPolicyOrBuilder
The message specifies the retry policy of remote data source when fetching fails. [#next-free-field: 7]Protobuf type
envoy.config.core.v3.RetryPolicy- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe message specifies the retry policy of remote data source when fetching fails.static final classSee :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.static interfacestatic final classSee :ref:`RetryPriority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate static final RetryPolicystatic final intprivate longprivate bytestatic final intprivate com.google.protobuf.UInt32Valueprivate static final com.google.protobuf.Parser<RetryPolicy> static final intstatic final intstatic final intstatic final intprivate BackoffStrategyprivate List<RetryPolicy.RetryHostPredicate> private Objectprivate RetryPolicy.RetryPriorityprivate static final longFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateRetryPolicy(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RetryPolicystatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlongFor details, see :ref:`host_selection_retry_max_attempts <envoy_v3_api_field_config.route.v3.RetryPolicy.host_selection_retry_max_attempts>`.com.google.protobuf.UInt32ValueSpecifies the allowed number of retries.com.google.protobuf.UInt32ValueOrBuilderSpecifies the allowed number of retries.com.google.protobuf.Parser<RetryPolicy> Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`.Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`.getRetryHostPredicate(int index) For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.intFor details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.getRetryHostPredicateOrBuilder(int index) For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.List<? extends RetryPolicy.RetryHostPredicateOrBuilder> For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.For details, see :ref:`retry_on <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_on>`.com.google.protobuf.ByteStringFor details, see :ref:`retry_on <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_on>`.For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.intinthashCode()booleanSpecifies the allowed number of retries.booleanSpecifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`.booleanFor details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic RetryPolicy.Builderstatic RetryPolicy.BuildernewBuilder(RetryPolicy prototype) protected RetryPolicy.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RetryPolicyparseDelimitedFrom(InputStream input) static RetryPolicyparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RetryPolicyparseFrom(byte[] data) static RetryPolicyparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RetryPolicyparseFrom(com.google.protobuf.ByteString data) static RetryPolicyparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RetryPolicyparseFrom(com.google.protobuf.CodedInputStream input) static RetryPolicyparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RetryPolicyparseFrom(InputStream input) static RetryPolicyparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RetryPolicyparseFrom(ByteBuffer data) static RetryPolicyparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RetryPolicy> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
RETRY_BACK_OFF_FIELD_NUMBER
public static final int RETRY_BACK_OFF_FIELD_NUMBER- See Also:
-
retryBackOff_
-
NUM_RETRIES_FIELD_NUMBER
public static final int NUM_RETRIES_FIELD_NUMBER- See Also:
-
numRetries_
private com.google.protobuf.UInt32Value numRetries_ -
RETRY_ON_FIELD_NUMBER
public static final int RETRY_ON_FIELD_NUMBER- See Also:
-
retryOn_
-
RETRY_PRIORITY_FIELD_NUMBER
public static final int RETRY_PRIORITY_FIELD_NUMBER- See Also:
-
retryPriority_
-
RETRY_HOST_PREDICATE_FIELD_NUMBER
public static final int RETRY_HOST_PREDICATE_FIELD_NUMBER- See Also:
-
retryHostPredicate_
-
HOST_SELECTION_RETRY_MAX_ATTEMPTS_FIELD_NUMBER
public static final int HOST_SELECTION_RETRY_MAX_ATTEMPTS_FIELD_NUMBER- See Also:
-
hostSelectionRetryMaxAttempts_
private long hostSelectionRetryMaxAttempts_ -
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
RetryPolicy
private RetryPolicy(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
RetryPolicy
private RetryPolicy()
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasRetryBackOff
public boolean hasRetryBackOff()Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`. This parameter is optional, in which case the default base interval is 1000 milliseconds. The default maximum interval is 10 times the base interval.
.envoy.config.core.v3.BackoffStrategy retry_back_off = 1;- Specified by:
hasRetryBackOffin interfaceRetryPolicyOrBuilder- Returns:
- Whether the retryBackOff field is set.
-
getRetryBackOff
Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`. This parameter is optional, in which case the default base interval is 1000 milliseconds. The default maximum interval is 10 times the base interval.
.envoy.config.core.v3.BackoffStrategy retry_back_off = 1;- Specified by:
getRetryBackOffin interfaceRetryPolicyOrBuilder- Returns:
- The retryBackOff.
-
getRetryBackOffOrBuilder
Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`. This parameter is optional, in which case the default base interval is 1000 milliseconds. The default maximum interval is 10 times the base interval.
.envoy.config.core.v3.BackoffStrategy retry_back_off = 1;- Specified by:
getRetryBackOffOrBuilderin interfaceRetryPolicyOrBuilder
-
hasNumRetries
public boolean hasNumRetries()Specifies the allowed number of retries. This parameter is optional and defaults to 1.
.google.protobuf.UInt32Value num_retries = 2 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
hasNumRetriesin interfaceRetryPolicyOrBuilder- Returns:
- Whether the numRetries field is set.
-
getNumRetries
public com.google.protobuf.UInt32Value getNumRetries()Specifies the allowed number of retries. This parameter is optional and defaults to 1.
.google.protobuf.UInt32Value num_retries = 2 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getNumRetriesin interfaceRetryPolicyOrBuilder- Returns:
- The numRetries.
-
getNumRetriesOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getNumRetriesOrBuilder()Specifies the allowed number of retries. This parameter is optional and defaults to 1.
.google.protobuf.UInt32Value num_retries = 2 [(.udpa.annotations.field_migrate) = { ... }- Specified by:
getNumRetriesOrBuilderin interfaceRetryPolicyOrBuilder
-
getRetryOn
For details, see :ref:`retry_on <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_on>`.
string retry_on = 3;- Specified by:
getRetryOnin interfaceRetryPolicyOrBuilder- Returns:
- The retryOn.
-
getRetryOnBytes
public com.google.protobuf.ByteString getRetryOnBytes()For details, see :ref:`retry_on <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_on>`.
string retry_on = 3;- Specified by:
getRetryOnBytesin interfaceRetryPolicyOrBuilder- Returns:
- The bytes for retryOn.
-
hasRetryPriority
public boolean hasRetryPriority()For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
.envoy.config.core.v3.RetryPolicy.RetryPriority retry_priority = 4;- Specified by:
hasRetryPriorityin interfaceRetryPolicyOrBuilder- Returns:
- Whether the retryPriority field is set.
-
getRetryPriority
For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
.envoy.config.core.v3.RetryPolicy.RetryPriority retry_priority = 4;- Specified by:
getRetryPriorityin interfaceRetryPolicyOrBuilder- Returns:
- The retryPriority.
-
getRetryPriorityOrBuilder
For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
.envoy.config.core.v3.RetryPolicy.RetryPriority retry_priority = 4;- Specified by:
getRetryPriorityOrBuilderin interfaceRetryPolicyOrBuilder
-
getRetryHostPredicateList
For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
repeated .envoy.config.core.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;- Specified by:
getRetryHostPredicateListin interfaceRetryPolicyOrBuilder
-
getRetryHostPredicateOrBuilderList
For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
repeated .envoy.config.core.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;- Specified by:
getRetryHostPredicateOrBuilderListin interfaceRetryPolicyOrBuilder
-
getRetryHostPredicateCount
public int getRetryHostPredicateCount()For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
repeated .envoy.config.core.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;- Specified by:
getRetryHostPredicateCountin interfaceRetryPolicyOrBuilder
-
getRetryHostPredicate
For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
repeated .envoy.config.core.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;- Specified by:
getRetryHostPredicatein interfaceRetryPolicyOrBuilder
-
getRetryHostPredicateOrBuilder
For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
repeated .envoy.config.core.v3.RetryPolicy.RetryHostPredicate retry_host_predicate = 5;- Specified by:
getRetryHostPredicateOrBuilderin interfaceRetryPolicyOrBuilder
-
getHostSelectionRetryMaxAttempts
public long getHostSelectionRetryMaxAttempts()For details, see :ref:`host_selection_retry_max_attempts <envoy_v3_api_field_config.route.v3.RetryPolicy.host_selection_retry_max_attempts>`.
int64 host_selection_retry_max_attempts = 6;- Specified by:
getHostSelectionRetryMaxAttemptsin interfaceRetryPolicyOrBuilder- Returns:
- The hostSelectionRetryMaxAttempts.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RetryPolicy parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RetryPolicy parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RetryPolicy parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RetryPolicy parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RetryPolicy parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RetryPolicy parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RetryPolicy parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RetryPolicy parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RetryPolicy parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RetryPolicy.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-