Interface RetryPolicyOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RetryPolicy,RetryPolicy.Builder
@Generated(value="protoc",
comments="annotations:RetryPolicyOrBuilder.java.pb.meta")
public interface RetryPolicyOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiondoubleCoefficient used to calculate the next retry interval.com.google.protobuf.DurationInterval of the first retry.com.google.protobuf.DurationOrBuilderInterval of the first retry.intMaximum number of attempts.com.google.protobuf.DurationMaximum interval between retries.com.google.protobuf.DurationOrBuilderMaximum interval between retries.getNonRetryableErrorTypes(int index) Non-Retryable errors types.com.google.protobuf.ByteStringgetNonRetryableErrorTypesBytes(int index) Non-Retryable errors types.intNon-Retryable errors types.Non-Retryable errors types.booleanInterval of the first retry.booleanMaximum interval between retries.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasInitialInterval
boolean hasInitialInterval()Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
.google.protobuf.Duration initial_interval = 1;- Returns:
- Whether the initialInterval field is set.
-
getInitialInterval
com.google.protobuf.Duration getInitialInterval()Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
.google.protobuf.Duration initial_interval = 1;- Returns:
- The initialInterval.
-
getInitialIntervalOrBuilder
com.google.protobuf.DurationOrBuilder getInitialIntervalOrBuilder()Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
.google.protobuf.Duration initial_interval = 1; -
getBackoffCoefficient
double getBackoffCoefficient()Coefficient used to calculate the next retry interval. The next retry interval is previous interval multiplied by the coefficient. Must be 1 or larger.
double backoff_coefficient = 2;- Returns:
- The backoffCoefficient.
-
hasMaximumInterval
boolean hasMaximumInterval()Maximum interval between retries. Exponential backoff leads to interval increase. This value is the cap of the increase. Default is 100x of the initial interval.
.google.protobuf.Duration maximum_interval = 3;- Returns:
- Whether the maximumInterval field is set.
-
getMaximumInterval
com.google.protobuf.Duration getMaximumInterval()Maximum interval between retries. Exponential backoff leads to interval increase. This value is the cap of the increase. Default is 100x of the initial interval.
.google.protobuf.Duration maximum_interval = 3;- Returns:
- The maximumInterval.
-
getMaximumIntervalOrBuilder
com.google.protobuf.DurationOrBuilder getMaximumIntervalOrBuilder()Maximum interval between retries. Exponential backoff leads to interval increase. This value is the cap of the increase. Default is 100x of the initial interval.
.google.protobuf.Duration maximum_interval = 3; -
getMaximumAttempts
int getMaximumAttempts()Maximum number of attempts. When exceeded the retries stop even if not expired yet. 1 disables retries. 0 means unlimited (up to the timeouts)
int32 maximum_attempts = 4;- Returns:
- The maximumAttempts.
-
getNonRetryableErrorTypesList
Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that this is not a substring match, the error *type* (not message) must match exactly.
repeated string non_retryable_error_types = 5;- Returns:
- A list containing the nonRetryableErrorTypes.
-
getNonRetryableErrorTypesCount
int getNonRetryableErrorTypesCount()Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that this is not a substring match, the error *type* (not message) must match exactly.
repeated string non_retryable_error_types = 5;- Returns:
- The count of nonRetryableErrorTypes.
-
getNonRetryableErrorTypes
Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that this is not a substring match, the error *type* (not message) must match exactly.
repeated string non_retryable_error_types = 5;- Parameters:
index- The index of the element to return.- Returns:
- The nonRetryableErrorTypes at the given index.
-
getNonRetryableErrorTypesBytes
com.google.protobuf.ByteString getNonRetryableErrorTypesBytes(int index) Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that this is not a substring match, the error *type* (not message) must match exactly.
repeated string non_retryable_error_types = 5;- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the nonRetryableErrorTypes at the given index.
-