Klasse ForMaxMillisecondsMediator
java.lang.Object
ch.nolix.core.programcontrol.sequencer.ForMaxMillisecondsMediator
A
ForMaxMillisecondsMediator is not mutable.- Version:
- 2019-11-24
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungasLongAs(BooleanSupplier condition) Createsuntil(BooleanSupplier condition) voidwaitAsLongAs(BooleanSupplier condition) Waits until the maxDurationInMilliseconds of the currentForMaxMillisecondsMediatoris reached or as long as the given condition is fulfilled.voidwaitUntil(BooleanSupplier condition) Waits until the maxDurationInMilliseconds of the currentForMaxMillisecondsMediatoris reached or until the given condition is fulfilled.
-
Methodendetails
-
asLongAs
Creates- Parameter:
condition-- Gibt zurück:
- a new
AsLongAsMediatorfor the maxDurationInMilliseconds of the currentForMaxMillisecondsMediatorand for the given condition. - Löst aus:
ArgumentIsNullException- if the given condition is null.
-
until
- Parameter:
condition-- Gibt zurück:
- a new
AsLongAsMediatorfor the maxDurationInMilliseconds of the currentForMaxMillisecondsMediatorand for the given condition. - Löst aus:
ArgumentIsNullException- if the given condition is null.
-
waitAsLongAs
Waits until the maxDurationInMilliseconds of the currentForMaxMillisecondsMediatoris reached or as long as the given condition is fulfilled.- Parameter:
condition-- Löst aus:
ArgumentIsNullException- if the given condition is null.
-
waitUntil
Waits until the maxDurationInMilliseconds of the currentForMaxMillisecondsMediatoris reached or until the given condition is fulfilled.- Parameter:
condition-- Löst aus:
ArgumentIsNullException- if the given condition is null.
-