|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface ExponentialRetry
This annotation can be used for retrying failures on any asynchronous executions.
For retrying based on dynamic retry policy use RetryDecorator
.
Both @ExponentialRetry annotation and RetryDecorator
should not be
used simultaneously on the same asynchronous method call.
Required Element Summary | |
---|---|
long |
initialRetryIntervalSeconds
Retry period to use for the first retry by ExponentialRetryPolicy. |
Optional Element Summary | |
---|---|
double |
backoffCoefficient
Coefficient to use for exponential retry policy. |
Class<? extends Throwable>[] |
exceptionsToRetry
Default is Throwable which means that all exceptions are retried. |
Class<? extends Throwable>[] |
excludeExceptions
What exceptions that match exceptionsToRetry list should be not retried. |
int |
maximumAttempts
Number of maximum retry attempts used by ExponentialRetryPolicy. |
long |
maximumRetryIntervalSeconds
Maximum retry period between attempts used by ExponentialRetryPolicy. |
long |
retryExpirationSeconds
Expiration period of retries used by ExponentialRetryPolicy. |
Element Detail |
---|
public abstract long initialRetryIntervalSeconds
public abstract long maximumRetryIntervalSeconds
public abstract long retryExpirationSeconds
public abstract double backoffCoefficient
public abstract int maximumAttempts
public abstract Class<? extends Throwable>[] exceptionsToRetry
Throwable
which means that all exceptions are retried.
public abstract Class<? extends Throwable>[] excludeExceptions
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |