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) void
Lets the currentIAsLongAsMediator
run the given job.runInBackground
(Runnable job) Lets the currentIAsLongAsMediator
run the given job asynchronously in background.static AsLongAsMediator
withCondition
(BooleanSupplier condition)
-
Methodendetails
-
withCondition
- Parameter:
condition
-- Gibt zurück:
- a new
AsLongAsMediator
with the given condition. - Löst aus:
ArgumentIsNullException
- if the given condition is null.
-
afterEveryMilliseconds
- Angegeben von:
afterEveryMilliseconds
in SchnittstelleIAsLongAsMediator
- Parameter:
timeIntervalInMilliseconds
-- Gibt zurück:
- a new
IAfterEveryMediator
with the given timeIntervalInMilliseconds.
-
afterEverySecond
- Angegeben von:
afterEverySecond
in SchnittstelleIAsLongAsMediator
- Gibt zurück:
- a new
IAfterEveryMediator
with a time interval of 1 second.
-
run
Lets the currentIAsLongAsMediator
run the given job.- Angegeben von:
run
in SchnittstelleIAsLongAsMediator
- Parameter:
job
-
-
runInBackground
Lets the currentIAsLongAsMediator
run the given job asynchronously in background.- Angegeben von:
runInBackground
in SchnittstelleIAsLongAsMediator
- Parameter:
job
-- Gibt zurück:
- a new
IFuture
.
-