public class RetryUtils extends Object
| Constructor and Description |
|---|
RetryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
waitFor(Callable<Boolean> condition,
int maxWaitTimeMillis)
Waits for
maxRetryCount time for the condition to be true. |
public static boolean waitFor(Callable<Boolean> condition, int maxWaitTimeMillis)
maxRetryCount time for the condition to be true.condition - the condition to evaluatemaxWaitTimeMillis - the maximum time in milliseconds to wait before giving uptrue if the condition was evaluated to true within the given constraints, false otherwiseCopyright © 2020. All rights reserved.