Package io.temporal.api.common.v1
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublegetBackoffCoefficient()Coefficient used to calculate the next retry interval.com.google.protobuf.DurationgetInitialInterval()Interval of the first retry.com.google.protobuf.DurationOrBuildergetInitialIntervalOrBuilder()Interval of the first retry.intgetMaximumAttempts()Maximum number of attempts.com.google.protobuf.DurationgetMaximumInterval()Maximum interval between retries.com.google.protobuf.DurationOrBuildergetMaximumIntervalOrBuilder()Maximum interval between retries.java.lang.StringgetNonRetryableErrorTypes(int index)Non-Retryable errors types.com.google.protobuf.ByteStringgetNonRetryableErrorTypesBytes(int index)Non-Retryable errors types.intgetNonRetryableErrorTypesCount()Non-Retryable errors types.java.util.List<java.lang.String>getNonRetryableErrorTypesList()Non-Retryable errors types.booleanhasInitialInterval()Interval of the first retry.booleanhasMaximumInterval()Maximum interval between retries.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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
java.util.List<java.lang.String> 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
java.lang.String getNonRetryableErrorTypes(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 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.
-
-