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) void
waitAsLongAs
(BooleanSupplier condition) Waits until the maxDurationInMilliseconds of the currentForMaxMillisecondsMediator
is reached or as long as the given condition is fulfilled.void
waitUntil
(BooleanSupplier condition) Waits until the maxDurationInMilliseconds of the currentForMaxMillisecondsMediator
is reached or until the given condition is fulfilled.
-
Methodendetails
-
asLongAs
Creates- Parameter:
condition
-- Gibt zurück:
- a new
AsLongAsMediator
for the maxDurationInMilliseconds of the currentForMaxMillisecondsMediator
and for the given condition. - Löst aus:
ArgumentIsNullException
- if the given condition is null.
-
until
- Parameter:
condition
-- Gibt zurück:
- a new
AsLongAsMediator
for the maxDurationInMilliseconds of the currentForMaxMillisecondsMediator
and for the given condition. - Löst aus:
ArgumentIsNullException
- if the given condition is null.
-
waitAsLongAs
Waits until the maxDurationInMilliseconds of the currentForMaxMillisecondsMediator
is 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 currentForMaxMillisecondsMediator
is reached or until the given condition is fulfilled.- Parameter:
condition
-- Löst aus:
ArgumentIsNullException
- if the given condition is null.
-