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 ForCountMediator
forMaxRunCount
(int maxRunCount) void
Lets the currentForCountMediator
run the given job.void
run
(IntConsumer job) Lets the currentForCountMediator
run the given job.runInBackground
(Runnable job) Lets the currentForCountMediator
run the given job in background.
-
Methodendetails
-
forMaxRunCount
- Parameter:
maxRunCount
-- Gibt zurück:
- a new
ForCountMediator
with the given maxRunCount. - Löst aus:
NegativeArgumentException
- if the given maxRunCount is negative.
-
run
Lets the currentForCountMediator
run the given job.- Parameter:
job
-- Löst aus:
ArgumentIsNullException
- if the given job is null.
-
run
Lets the currentForCountMediator
run the given job.- Parameter:
job
-- Löst aus:
ArgumentIsNullException
- if the given job is null.
-
runInBackground
Lets the currentForCountMediator
run the given job in background.- Parameter:
job
-- Gibt zurück:
- a new
IFuture
for the job running. - Löst aus:
ArgumentIsNullException
- if the given job is null.
-