Interface IAsLongAsMediator
- All Known Implementing Classes:
AsLongAsMediator
public interface IAsLongAsMediator
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionafterEveryMilliseconds(int timeIntervalInMilliseconds) voidLets the currentIAsLongAsMediatorrun the given job.runInBackground(Runnable step) Lets the currentIAsLongAsMediatorrun the given step asynchronously in background.
-
Method Details
-
afterEveryMilliseconds
- Parameters:
timeIntervalInMilliseconds-- Returns:
- a new
IAfterEveryMediatorwith the given timeIntervalInMilliseconds. - Throws:
RuntimeException- if the given time timeIntervalInMilliseconds is negative.
-
afterEverySecond
IAfterEveryMediator afterEverySecond()- Returns:
- a new
IAfterEveryMediatorwith a time interval of 1 second.
-
run
-
runInBackground
Lets the currentIAsLongAsMediatorrun the given step asynchronously in background.- Parameters:
step-- Returns:
- a new
IFuture. - Throws:
RuntimeException- if the given step is null.
-