@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface MethodRetry
RetryOptions
are present on ActivityOptions
or ChildWorkflowOptions
the fields that are
not default take precedence over parameters of this annotation.Modifier and Type | Optional Element and Description |
---|---|
double |
backoffCoefficient
Coefficient used to calculate the next retry interval.
|
java.lang.Class<? extends java.lang.Throwable>[] |
doNotRetry
List of exceptions to skip retry.
|
long |
expirationSeconds
Maximum time to retry.
|
long |
initialIntervalSeconds
Interval of the first retry.
|
int |
maximumAttempts
Maximum number of attempts.
|
long |
maximumIntervalSeconds
Maximum interval between retries.
|
public abstract long initialIntervalSeconds
RetryOptions.Builder.setInitialInterval(Duration)
.public abstract long expirationSeconds
RetryOptions.Builder.setExpiration(Duration)
.public abstract double backoffCoefficient
public abstract int maximumAttempts
public abstract long maximumIntervalSeconds
initialIntervalSeconds()
.public abstract java.lang.Class<? extends java.lang.Throwable>[] doNotRetry
Error
and CancellationException
are never retried, so they are not allowed in this
list.