public interface IActionRetrier
| Modifier and Type | Method and Description |
|---|---|
void |
doWithRetry(Runnable runnable,
Collection<Class<? extends Throwable>> handledExceptions)
Retries the action when the handled exception occurs.
|
<T> T |
doWithRetry(Supplier<T> function,
Collection<Class<? extends Throwable>> handledExceptions)
Retries the function when the handled exception occurs.
|
void doWithRetry(Runnable runnable, Collection<Class<? extends Throwable>> handledExceptions)
runnable - Action to be applied.handledExceptions - Exceptions to be handled.<T> T doWithRetry(Supplier<T> function, Collection<Class<? extends Throwable>> handledExceptions)
T - Return type of function.function - Function to be applied.handledExceptions - Exceptions to be handled.Copyright © 2020. All rights reserved.