Class RetryPolicy

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RetryPolicyOrBuilder, java.io.Serializable

    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:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RetryPolicy.Builder
      The message specifies the retry policy of remote data source when fetching fails.
      static class  RetryPolicy.RetryHostPredicate
      See :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
      static interface  RetryPolicy.RetryHostPredicateOrBuilder  
      static class  RetryPolicy.RetryPriority
      See :ref:`RetryPriority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
      static interface  RetryPolicy.RetryPriorityOrBuilder  
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

        com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,​T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

        com.google.protobuf.AbstractMessage.BuilderParent
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RetryPolicy()  
      private RetryPolicy​(com.google.protobuf.GeneratedMessage.Builder<?> builder)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      static RetryPolicy getDefaultInstance()  
      RetryPolicy getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      long getHostSelectionRetryMaxAttempts()
      For details, see :ref:`host_selection_retry_max_attempts <envoy_v3_api_field_config.route.v3.RetryPolicy.host_selection_retry_max_attempts>`.
      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()  
      BackoffStrategy getRetryBackOff()
      Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`.
      BackoffStrategyOrBuilder getRetryBackOffOrBuilder()
      Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`.
      RetryPolicy.RetryHostPredicate getRetryHostPredicate​(int index)
      For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
      int getRetryHostPredicateCount()
      For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
      java.util.List<RetryPolicy.RetryHostPredicate> getRetryHostPredicateList()
      For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
      RetryPolicy.RetryHostPredicateOrBuilder getRetryHostPredicateOrBuilder​(int index)
      For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
      java.util.List<? extends RetryPolicy.RetryHostPredicateOrBuilder> getRetryHostPredicateOrBuilderList()
      For details, see :ref:`RetryHostPredicate <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_host_predicate>`.
      java.lang.String getRetryOn()
      For details, see :ref:`retry_on <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_on>`.
      com.google.protobuf.ByteString getRetryOnBytes()
      For details, see :ref:`retry_on <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_on>`.
      RetryPolicy.RetryPriority getRetryPriority()
      For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
      RetryPolicy.RetryPriorityOrBuilder getRetryPriorityOrBuilder()
      For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
      int getSerializedSize()  
      int hashCode()  
      boolean hasNumRetries()
      Specifies the allowed number of retries.
      boolean hasRetryBackOff()
      Specifies parameters that control :ref:`retry backoff strategy <envoy_v3_api_msg_config.core.v3.BackoffStrategy>`.
      boolean hasRetryPriority()
      For details, see :ref:`retry_priority <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_priority>`.
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      static RetryPolicy.Builder newBuilder()  
      static RetryPolicy.Builder newBuilder​(RetryPolicy prototype)  
      RetryPolicy.Builder newBuilderForType()  
      protected RetryPolicy.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)  
      static RetryPolicy parseDelimitedFrom​(java.io.InputStream input)  
      static RetryPolicy parseDelimitedFrom​(java.io.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​(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​(java.io.InputStream input)  
      static RetryPolicy parseFrom​(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static RetryPolicy parseFrom​(java.nio.ByteBuffer data)  
      static RetryPolicy parseFrom​(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      static com.google.protobuf.Parser<RetryPolicy> parser()  
      RetryPolicy.Builder toBuilder()  
      void writeTo​(com.google.protobuf.CodedOutputStream output)  
      • Methods inherited from class com.google.protobuf.GeneratedMessage

        canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
      • Methods inherited from class com.google.protobuf.AbstractMessage

        findInitializationErrors, getInitializationErrorString, hashFields, toString
      • Methods inherited from class com.google.protobuf.AbstractMessageLite

        addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.MessageLite

        toByteArray, toByteString, writeDelimitedTo, writeTo
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Field Detail

      • bitField0_

        private int bitField0_
      • RETRY_BACK_OFF_FIELD_NUMBER

        public static final int RETRY_BACK_OFF_FIELD_NUMBER
        See Also:
        Constant Field Values
      • NUM_RETRIES_FIELD_NUMBER

        public static final int NUM_RETRIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • numRetries_

        private com.google.protobuf.UInt32Value numRetries_
      • retryOn_

        private volatile java.lang.Object retryOn_
      • RETRY_PRIORITY_FIELD_NUMBER

        public static final int RETRY_PRIORITY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • RETRY_HOST_PREDICATE_FIELD_NUMBER

        public static final int RETRY_HOST_PREDICATE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • HOST_SELECTION_RETRY_MAX_ATTEMPTS_FIELD_NUMBER

        public static final int HOST_SELECTION_RETRY_MAX_ATTEMPTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • hostSelectionRetryMaxAttempts_

        private long hostSelectionRetryMaxAttempts_
      • memoizedIsInitialized

        private byte memoizedIsInitialized
      • DEFAULT_INSTANCE

        private static final RetryPolicy DEFAULT_INSTANCE
      • PARSER

        private static final com.google.protobuf.Parser<RetryPolicy> PARSER
    • Constructor Detail

      • RetryPolicy

        private RetryPolicy​(com.google.protobuf.GeneratedMessage.Builder<?> builder)
      • RetryPolicy

        private RetryPolicy()
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.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:
        hasRetryBackOff in interface RetryPolicyOrBuilder
        Returns:
        Whether the retryBackOff field is set.
      • getRetryBackOff

        public BackoffStrategy 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:
        getRetryBackOff in interface RetryPolicyOrBuilder
        Returns:
        The retryBackOff.
      • getRetryBackOffOrBuilder

        public BackoffStrategyOrBuilder 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:
        getRetryBackOffOrBuilder in interface RetryPolicyOrBuilder
      • 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:
        hasNumRetries in interface RetryPolicyOrBuilder
        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:
        getNumRetries in interface RetryPolicyOrBuilder
        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:
        getNumRetriesOrBuilder in interface RetryPolicyOrBuilder
      • getRetryOn

        public java.lang.String getRetryOn()
         For details, see :ref:`retry_on <envoy_v3_api_field_config.route.v3.RetryPolicy.retry_on>`.
         
        string retry_on = 3;
        Specified by:
        getRetryOn in interface RetryPolicyOrBuilder
        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:
        getRetryOnBytes in interface RetryPolicyOrBuilder
        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:
        hasRetryPriority in interface RetryPolicyOrBuilder
        Returns:
        Whether the retryPriority field is set.
      • getRetryPriority

        public RetryPolicy.RetryPriority 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:
        getRetryPriority in interface RetryPolicyOrBuilder
        Returns:
        The retryPriority.
      • getRetryHostPredicateList

        public java.util.List<RetryPolicy.RetryHostPredicate> 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:
        getRetryHostPredicateList in interface RetryPolicyOrBuilder
      • 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:
        getRetryHostPredicateCount in interface RetryPolicyOrBuilder
      • getRetryHostPredicate

        public RetryPolicy.RetryHostPredicate getRetryHostPredicate​(int index)
         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:
        getRetryHostPredicate in interface RetryPolicyOrBuilder
      • 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:
        getHostSelectionRetryMaxAttempts in interface RetryPolicyOrBuilder
        Returns:
        The hostSelectionRetryMaxAttempts.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static RetryPolicy parseFrom​(java.nio.ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static RetryPolicy parseFrom​(java.nio.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

        public static RetryPolicy parseFrom​(java.io.InputStream input)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static RetryPolicy parseFrom​(java.io.InputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static RetryPolicy parseDelimitedFrom​(java.io.InputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static RetryPolicy parseDelimitedFrom​(java.io.InputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static RetryPolicy parseFrom​(com.google.protobuf.CodedInputStream input)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static RetryPolicy parseFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public RetryPolicy.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public RetryPolicy.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected RetryPolicy.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getDefaultInstance

        public static RetryPolicy getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<RetryPolicy> parser()
      • getParserForType

        public com.google.protobuf.Parser<RetryPolicy> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • getDefaultInstanceForType

        public RetryPolicy getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder