Klasse ForCountMediator
java.lang.Object
ch.nolix.core.programcontrol.flowcontrol.ForCountMediator
A
ForCountMediator is not mutable.- Version:
- 2016-06-01
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic ForCountMediatorforMaxRunCount(int maxRunCount) voidLets the currentForCountMediatorrun the given job.voidrun(IntConsumer job) Lets the currentForCountMediatorrun the given job.runInBackground(Runnable job) Lets the currentForCountMediatorrun the given job in background.
-
Methodendetails
-
forMaxRunCount
- Parameter:
maxRunCount-- Gibt zurück:
- a new
ForCountMediatorwith the given maxRunCount. - Löst aus:
NegativeArgumentException- if the given maxRunCount is negative.
-
run
Lets the currentForCountMediatorrun the given job.- Parameter:
job-- Löst aus:
ArgumentIsNullException- if the given job is null.
-
run
Lets the currentForCountMediatorrun the given job.- Parameter:
job-- Löst aus:
ArgumentIsNullException- if the given job is null.
-
runInBackground
Lets the currentForCountMediatorrun the given job in background.- Parameter:
job-- Gibt zurück:
- a new
IFuturefor the job running. - Löst aus:
ArgumentIsNullException- if the given job is null.
-