Klasse AsLongAsMediator
java.lang.Object
ch.nolix.core.programcontrol.flowcontrol.AsLongAsMediator
- Alle implementierten Schnittstellen:
IAsLongAsMediator
A
AsLongAsMediator is not mutable.- Version:
- 2017-06-01
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungafterEveryMilliseconds(int timeIntervalInMilliseconds) voidLets the currentIAsLongAsMediatorrun the given job.runInBackground(Runnable job) Lets the currentIAsLongAsMediatorrun the given job asynchronously in background.static AsLongAsMediatorwithCondition(BooleanSupplier condition)
-
Methodendetails
-
withCondition
- Parameter:
condition-- Gibt zurück:
- a new
AsLongAsMediatorwith the given condition. - Löst aus:
ArgumentIsNullException- if the given condition is null.
-
afterEveryMilliseconds
- Angegeben von:
afterEveryMillisecondsin SchnittstelleIAsLongAsMediator- Parameter:
timeIntervalInMilliseconds-- Gibt zurück:
- a new
IAfterEveryMediatorwith the given timeIntervalInMilliseconds.
-
afterEverySecond
- Angegeben von:
afterEverySecondin SchnittstelleIAsLongAsMediator- Gibt zurück:
- a new
IAfterEveryMediatorwith a time interval of 1 second.
-
run
Lets the currentIAsLongAsMediatorrun the given job.- Angegeben von:
runin SchnittstelleIAsLongAsMediator- Parameter:
job-
-
runInBackground
Lets the currentIAsLongAsMediatorrun the given job asynchronously in background.- Angegeben von:
runInBackgroundin SchnittstelleIAsLongAsMediator- Parameter:
job-- Gibt zurück:
- a new
IFuture.
-