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