public class Poller extends Object
| Constructor and Description |
|---|
Poller() |
| Modifier and Type | Method and Description |
|---|---|
static void |
waitFor(java.util.function.Supplier<Boolean> predicate,
long timeout)
Waits for the predicate to return true using a default polling rate of 100ms
|
static void |
waitFor(java.util.function.Supplier<Boolean> predicate,
long timeout,
long pollingIntervalMs)
Waits for the predicate to return true
|
public static void waitFor(java.util.function.Supplier<Boolean> predicate, long timeout) throws TimeoutException, InterruptedException
predicate - the predicate to be testedtimeout - the timeout in msTimeoutExceptionInterruptedExceptionpublic static void waitFor(java.util.function.Supplier<Boolean> predicate, long timeout, long pollingIntervalMs) throws TimeoutException, InterruptedException
predicate - the predicate to be testedtimeout - the timeout in mspollingIntervalMs - the polling interval in msTimeoutExceptionInterruptedExceptionCopyright © 2019. All rights reserved.