Interface IForMaxMillisecondsMediator
- All Known Implementing Classes:
ForMaxMillisecondsMediator
public interface IForMaxMillisecondsMediator
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionasLongAs(BooleanSupplier condition) until(BooleanSupplier condition) voidwaitAsLongAs(BooleanSupplier condition) Waits until the maxDurationInMilliseconds of the currentIForMaxMillisecondsMediatoris reached or the given condition is unfulfilled.voidwaitUntil(BooleanSupplier condition) Waits until the maxDurationInMilliseconds of the currentIForMaxMillisecondsMediatoris reached or the given condition is fulfilled.
-
Method Details
-
asLongAs
- Parameters:
condition-- Returns:
- a new
IAsLongAsMediatorfor the maxDurationInMilliseconds of the currentIForMaxMillisecondsMediatorand for the given condition. - Throws:
RuntimeException- if the given condition is null.
-
until
- Parameters:
condition-- Returns:
- a new
IAsLongAsMediatorfor the maxDurationInMilliseconds of the currentIForMaxMillisecondsMediatorand for the given condition. - Throws:
RuntimeException- if the given condition is null.
-
waitAsLongAs
Waits until the maxDurationInMilliseconds of the currentIForMaxMillisecondsMediatoris reached or the given condition is unfulfilled.- Parameters:
condition-- Throws:
RuntimeException- if the given condition is null.
-
waitUntil
Waits until the maxDurationInMilliseconds of the currentIForMaxMillisecondsMediatoris reached or the given condition is fulfilled.- Parameters:
condition-- Throws:
RuntimeException- if the given condition is null.
-