@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface Retry
| Modifier and Type | Optional Element and Description |
|---|---|
double |
backoffExponent
The amount to multiply backoff time by for each failure
|
long |
backoffTime
the backoff wait amount
|
java.util.concurrent.TimeUnit |
backoffUnit
The backoff wait unit
|
java.lang.Class<? extends java.lang.Throwable>[] |
exceptOn
The exception types which, if thrown, will bypass retry logic altogether
|
java.lang.Class<? extends java.lang.Throwable>[] |
exceptOnCore
The core exception types which, if thrown, will bypass retry logic altogether.
These are set to sensible defaults for regular Java code (Errors, IllegalArgumentExceptions and NullPointerExceptions) |
int |
maxAttempts
The maximum number of attempts before the exception is thrown as normal
|
java.lang.Class<? extends java.lang.Throwable>[] |
on
The exception types which, if thrown, will cause retry.
|
public abstract long backoffTime
public abstract java.util.concurrent.TimeUnit backoffUnit
public abstract double backoffExponent
public abstract int maxAttempts
public abstract java.lang.Class<? extends java.lang.Throwable>[] on
public abstract java.lang.Class<? extends java.lang.Throwable>[] exceptOn
public abstract java.lang.Class<? extends java.lang.Throwable>[] exceptOnCore
Copyright © 2014. All Rights Reserved.