<T,E extends Exception> T |
Retrier.run(FailableInterruptibleSupplier<T,E> toRun) |
Runs the given task with the retry configuration as defined in the constructor, and using only RuntimeException and Error as early exit errors.
|
static <T,E extends Exception> T |
Retrier.run(FailableInterruptibleSupplier<T,E> toRun,
int initialWaitTimeMs,
double waitTimeFactor,
int timesToTry) |
Runs the given task with the given retry configuration
|
<T,E extends Exception> T |
Retrier.run(FailableInterruptibleSupplier<T,E> toRun,
Collection<Class<? extends E>> terminalErrorTypes) |
Runs the given task with the retry configuration as defined in the constructor
|
static <T,E extends Exception> T |
Retrier.run(FailableInterruptibleSupplier<T,E> toRun,
Collection<Class<? extends E>> terminalErrorTypes,
int initialWaitTimeMs,
double waitTimeFactor,
int timesToTry) |
Runs the given task with the given retry configuration
|
<T,E extends Exception> T |
Retrier.run(FailableInterruptibleSupplier<T,E> toRun,
Predicate<E> terminalErrorPredicate) |
Runs the given task with the retry configuration as defined in the constructor
|
static <T,E extends Exception> T |
Retrier.run(FailableInterruptibleSupplier<T,E> toRun,
Predicate<E> terminalErrorPredicate,
int initialWaitTimeMs,
double waitTimeFactor,
int timesToTry) |
Runs the given task with the given retry configuration
|
static <T,E extends Exception> T |
Retrier.runWithDefaults(FailableInterruptibleSupplier<T,E> toRun) |
Runs the given task with the default retry configuration
|
static <T,E extends Exception> T |
Retrier.runWithDefaults(FailableInterruptibleSupplier<T,E> toRun,
Collection<Class<? extends E>> terminalErrorTypes) |
Runs the given task with the default retry configuration
|
static <T,E extends Exception> T |
Retrier.runWithDefaults(FailableInterruptibleSupplier<T,E> toRun,
Predicate<E> terminalErrorPredicate) |
Runs the given task with the default retry configuration
|