Klasse AsLongAsMediator
java.lang.Object
ch.nolix.core.programcontrol.sequencer.AsLongAsMediator
An as long as mediator is not mutable.
- Version:
- 2017-06-01
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungafterEveryMilliseconds(int timeIntervalInMilliseconds) voidLets this as long as mediator run the given job.runInBackground(Runnable job) Lets this as long as mediator run the given job in background.
-
Methodendetails
-
afterEveryMilliseconds
- Parameter:
timeIntervalInMilliseconds-- Gibt zurück:
- a new after all mediator with the given time interval in milliseconds.
- Löst aus:
NegativeArgumentException- if the given time interval in milliseconds is negative.
-
afterEverySecond
- Gibt zurück:
- a new
AfterEveryMediatorwith a time interval of 1 second.
-
run
Lets this as long as mediator run the given job.- Parameter:
job-
-
runInBackground
Lets this as long as mediator run the given job in background.- Parameter:
job-- Gibt zurück:
- a new future.
- Löst aus:
ArgumentIsNullException- if the given job is null.
-