Schnittstelle IAsLongAsMediator
- Alle bekannten Implementierungsklassen:
AsLongAsMediator
public interface IAsLongAsMediator
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungafterEveryMilliseconds(int timeIntervalInMilliseconds) voidLets the currentIAsLongAsMediatorrun the given job.runInBackground(Runnable job) Lets the currentIAsLongAsMediatorrun the given job asynchronously in background.
-
Methodendetails
-
afterEveryMilliseconds
- Parameter:
timeIntervalInMilliseconds-- Gibt zurück:
- a new
IAfterEveryMediatorwith the given timeIntervalInMilliseconds. - Löst aus:
RuntimeException- if the given time timeIntervalInMilliseconds is negative.
-
afterEverySecond
IAfterEveryMediator afterEverySecond()- Gibt zurück:
- a new
IAfterEveryMediatorwith a time interval of 1 second.
-
run
-
runInBackground
Lets the currentIAsLongAsMediatorrun the given job asynchronously in background.- Parameter:
job-- Gibt zurück:
- a new
IFuture. - Löst aus:
RuntimeException- if the given job is null.
-