public class WaitHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
WaitHelper.Command
Holder to share result between threads.
|
static class |
WaitHelper.ResultHolder
Holder to share result between threads.
|
| Constructor and Description |
|---|
WaitHelper() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
waitForCommand(WaitHelper.Command command)
Wait for custom command to return true.
|
static boolean |
waitForCommand(WaitHelper.Command command,
int timeout)
Wait for custom command to return true.
|
static boolean |
waitForResult(WaitHelper.ResultHolder resultHolder)
Wait for result set to true by another thread in resultHolder.
|
static boolean |
waitForResult(WaitHelper.ResultHolder resultHolder,
int timeout)
Wait for result set to true by another thread in resultHolder.
|
public static boolean waitForResult(WaitHelper.ResultHolder resultHolder)
resultHolder - holder of a boolean result - wait for value "true"public static boolean waitForResult(WaitHelper.ResultHolder resultHolder, int timeout)
resultHolder - holder of a boolean result - wait for value "true"timeout - how long to waitpublic static boolean waitForCommand(WaitHelper.Command command)
command - wait for "true"public static boolean waitForCommand(WaitHelper.Command command, int timeout)
command - wait for return "true" valueCopyright © 2018. All rights reserved.