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 double
getBackoffCoefficient()
Coefficient used to calculate the next retry interval.com.google.protobuf.Duration
getInitialInterval()
Interval of the first retry.com.google.protobuf.DurationOrBuilder
getInitialIntervalOrBuilder()
Interval of the first retry.int
getMaximumAttempts()
Maximum number of attempts.com.google.protobuf.Duration
getMaximumInterval()
Maximum interval between retries.com.google.protobuf.DurationOrBuilder
getMaximumIntervalOrBuilder()
Maximum interval between retries.java.lang.String
getNonRetryableErrorTypes(int index)
Non-Retryable errors types.com.google.protobuf.ByteString
getNonRetryableErrorTypesBytes(int index)
Non-Retryable errors types.int
getNonRetryableErrorTypesCount()
Non-Retryable errors types.java.util.List<java.lang.String>
getNonRetryableErrorTypesList()
Non-Retryable errors types.boolean
hasInitialInterval()
Interval of the first retry.boolean
hasMaximumInterval()
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 [(.gogoproto.stdduration) = true];
- 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 [(.gogoproto.stdduration) = true];
- 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 [(.gogoproto.stdduration) = true];
-
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 [(.gogoproto.stdduration) = true];
- 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 [(.gogoproto.stdduration) = true];
- 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 [(.gogoproto.stdduration) = true];
-
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.
-
-