Package com.exasol.exasoltestsetup
Class WaitHelper
- java.lang.Object
-
- com.exasol.exasoltestsetup.WaitHelper
-
public class WaitHelper extends Object
Helper class for waiting.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidwaitFor(long milliSeconds)Wait until a given time.static voidwaitUntil(BooleanSupplier predicate, int timeoutAfterSec, String jobDescription)Wait until the given supplier givestrue.
-
-
-
Method Detail
-
waitFor
public static void waitFor(long milliSeconds)
Wait until a given time.- Parameters:
milliSeconds- time in milliseconds
-
waitUntil
public static void waitUntil(BooleanSupplier predicate, int timeoutAfterSec, String jobDescription)
Wait until the given supplier givestrue.This method checks the predicate every 200 ms.
- Parameters:
predicate- function that tells if waiting should be overtimeoutAfterSec- maximum number of seconds to waitjobDescription- name of the condition to wait on. Used in the timeout exception.
-
-