public class Repeater
extends Object
| Constructor and Description |
|---|
Repeater(int retries,
int delay) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCounter()
Gets the counter.
|
<T> T |
repeat(Callable<T> callable)
Call callable.call() until there is no exception or max number of retries
is reached.
|
public <T> T repeat(Callable<T> callable)
throws Exception
T - the generic typecallable - the callableException - in case of any errorpublic int getCounter()
Copyright © 2010-2020 Toolsverse. All Rights Reserved.