public class Helpers extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Helpers.WaitOptions
Options for the wait() function
|
| Constructor and Description |
|---|
Helpers() |
| Modifier and Type | Method and Description |
|---|---|
static void |
wait(Runnable callable)
Waits until specified callable will pass successfully with interval of 25 millseconds
and default wait options
Helpers.WaitOptions |
static void |
wait(Runnable callable,
Long intervalInMs)
Waits until specified callable will pass successfully with default wait options
Helpers.WaitOptions |
static void |
wait(Runnable callable,
Long intervalInMs,
Helpers.WaitOptions options)
Waits until specified callable will pass successfully
|
static void |
wait(java.util.function.Supplier<Boolean> callable)
Waits until specified callable will pass successfully and return true, with interval of 25 milliseconds
and default wait options
Helpers.WaitOptions |
static void |
wait(java.util.function.Supplier<Boolean> callable,
Long intervalInMs)
Waits until specified callable will pass successfully and return true,
with default wait options
Helpers.WaitOptions |
static void |
wait(java.util.function.Supplier<Boolean> callable,
Long intervalInMs,
Helpers.WaitOptions options)
Waits until specified callable will pass successfully and return true
|
public static void wait(java.util.function.Supplier<Boolean> callable) throws InterruptedException, TimeoutException
Helpers.WaitOptionscallable - Callable to call until it returns trueInterruptedException - If any thread has interrupted the current threadTimeoutException - If timed out waitingpublic static void wait(java.util.function.Supplier<Boolean> callable, Long intervalInMs) throws InterruptedException, TimeoutException
Helpers.WaitOptionscallable - Callable to call until it returns trueintervalInMs - Interval in milliseconds between the checksInterruptedException - If any thread has interrupted the current threadTimeoutException - If timed out waitingpublic static void wait(java.util.function.Supplier<Boolean> callable, Long intervalInMs, Helpers.WaitOptions options) throws InterruptedException, TimeoutException
callable - Callable to call until it returns trueintervalInMs - Interval in milliseconds between the checksoptions - Additional wait optionsInterruptedException - If any thread has interrupted the current threadTimeoutException - If timed out waitingpublic static void wait(Runnable callable) throws InterruptedException, TimeoutException
Helpers.WaitOptionscallable - Callable to executeInterruptedException - If any thread has interrupted the current threadTimeoutException - If timed out waitingpublic static void wait(Runnable callable, Long intervalInMs) throws InterruptedException, TimeoutException
Helpers.WaitOptionscallable - Callable to executeintervalInMs - Interval in milliseconds between the checksInterruptedException - If any thread has interrupted the current threadTimeoutException - If timed out waitingpublic static void wait(Runnable callable, Long intervalInMs, Helpers.WaitOptions options) throws InterruptedException, TimeoutException
callable - Callable to executeintervalInMs - Interval in milliseconds between the checksoptions - Additional wait optionsInterruptedException - If any thread has interrupted the current threadTimeoutException - If timed out waitingCopyright © 2023. All rights reserved.