public class RetryUtils extends Object
| Constructor and Description |
|---|
RetryUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
waitFor(Callable<Boolean> condition,
long maxWaitTimeMillis) |
static boolean |
waitFor(Callable<Boolean> condition,
long maxWaitDuration,
TimeUnit timeUnit)
A general-purpose utility for source code, intended as a replacement for Awaitility.
|
public static boolean waitFor(Callable<Boolean> condition, long maxWaitDuration, TimeUnit timeUnit)
condition with a backoff between multiple poll events, until the specified duration
is reached.condition - the condition to evaluatemaxWaitDuration - the maximum duration to wait before giving uptimeUnit - the unit of durationtrue if the condition was evaluated to true within the given constraints, false otherwiseCopyright © 2022. All rights reserved.