public final class RetryExecutor extends Object
| Constructor and Description |
|---|
RetryExecutor() |
| Modifier and Type | Method and Description |
|---|---|
<T,U> boolean |
execute(BiFunction<T,U,Boolean> function,
T arg1,
U arg2)
Execute and retry.
|
<T> boolean |
execute(Function<T,Boolean> function,
T arg)
Execute and retry.
|
public <T> boolean execute(Function<T,Boolean> function, T arg)
T - argument typefunction - function to be executedarg - argumentpublic <T,U> boolean execute(BiFunction<T,U,Boolean> function, T arg1, U arg2)
T - the first argument typeU - the second argument typefunction - function to be executedarg1 - the first argumentarg2 - the second argumentCopyright © 2023 The Apache Software Foundation. All rights reserved.