Schnittstelle IAsLongAsMediator
- Alle bekannten Implementierungsklassen:
AsLongAsMediator
public interface IAsLongAsMediator
- Version:
- 2025-02-13
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer 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
Lets the currentIAsLongAsMediatorrun the given job.- Parameter:
job-
-
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.
-