Klasse FlowControllerMediator
java.lang.Object
ch.nolix.core.programcontrol.flowcontrol.FlowControllerMediator
- Alle implementierten Schnittstellen:
IFlowControllerMediator
- Version:
- 2020-08-15
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungasLongAs(BooleanSupplier condition) asSoonAs(BooleanSupplier condition) asSoonAsNoMore(BooleanSupplier condition) Enqueues the given job.forCount(int maxRunCount) forMaxMilliseconds(int maxDurationInMilliseconds) forMaxSeconds(int maxDurationInSeconds) runInBackground(Runnable job) Runs the given job in background.<R> IResultFuture<R> runInBackground(Supplier<R> resultJob) Runs the given resultJob in background.until(BooleanSupplier condition) voidwaitAsLongAs(BooleanSupplier condition) Waits as long as the given condition is fulfilled.voidwaitForMilliseconds(int durationInMilliseconds) Waits for the given durationInMilliseconds.voidwaitForSeconds(int durationInSeconds) Waits for the given durationInSeconds.voidwaitUntil(BooleanSupplier condition) Waits until the given condition is fulfilled.
-
Konstruktordetails
-
FlowControllerMediator
public FlowControllerMediator()
-
-
Methodendetails
-
asLongAs
- Angegeben von:
asLongAsin SchnittstelleIFlowControllerMediator- Parameter:
condition-- Gibt zurück:
- a new
IAsLongAsMediatorwith the given condition.
-
asSoonAs
- Angegeben von:
asSoonAsin SchnittstelleIFlowControllerMediator- Parameter:
condition-- Gibt zurück:
- a new
IAsSoonAsMediatorwith the given condition.
-
asSoonAsNoMore
- Angegeben von:
asSoonAsNoMorein SchnittstelleIFlowControllerMediator- Parameter:
condition-- Gibt zurück:
- a new
IAsSoonAsMediatorwith the negation of the given condition.
-
enqueue
Enqueues the given job.- Angegeben von:
enqueuein SchnittstelleIFlowControllerMediator- Parameter:
job-- Gibt zurück:
- a
IFuturefor the given job.
-
forCount
- Angegeben von:
forCountin SchnittstelleIFlowControllerMediator- Parameter:
maxRunCount-- Gibt zurück:
- a new
IForCountMediatorwith the given maxRunCount.
-
forMaxMilliseconds
- Angegeben von:
forMaxMillisecondsin SchnittstelleIFlowControllerMediator- Parameter:
maxDurationInMilliseconds-- Gibt zurück:
- a new
IForMaxMillisecondsMediatorfor the given maxDurationInMilliseconds.
-
forMaxSeconds
- Angegeben von:
forMaxSecondsin SchnittstelleIFlowControllerMediator- Parameter:
maxDurationInSeconds-- Gibt zurück:
- a new
IForMaxMillisecondsMediatorfor the given maxDurationInSeconds.
-
runInBackground
Runs the given job in background.- Angegeben von:
runInBackgroundin SchnittstelleIFlowControllerMediator- Parameter:
job-- Gibt zurück:
- a new
IFuturefor the execution of the given job.
-
runInBackground
Runs the given resultJob in background. A result job is a job that returns a result.- Angegeben von:
runInBackgroundin SchnittstelleIFlowControllerMediator- Typparameter:
R- is the type of the result the given resultJob returns.- Parameter:
resultJob-- Gibt zurück:
- a new
IResultFuturefor the execution of the given resultJob.
-
until
- Angegeben von:
untilin SchnittstelleIFlowControllerMediator- Parameter:
condition-- Gibt zurück:
- a new
IAsLongAsMediatorfor the negation of the given condition.
-
waitAsLongAs
Waits as long as the given condition is fulfilled.- Angegeben von:
waitAsLongAsin SchnittstelleIFlowControllerMediator- Parameter:
condition-
-
waitForMilliseconds
public void waitForMilliseconds(int durationInMilliseconds) Waits for the given durationInMilliseconds.- Angegeben von:
waitForMillisecondsin SchnittstelleIFlowControllerMediator- Parameter:
durationInMilliseconds-
-
waitForSeconds
public void waitForSeconds(int durationInSeconds) Waits for the given durationInSeconds.- Angegeben von:
waitForSecondsin SchnittstelleIFlowControllerMediator- Parameter:
durationInSeconds-
-
waitUntil
Waits until the given condition is fulfilled.- Angegeben von:
waitUntilin SchnittstelleIFlowControllerMediator- Parameter:
condition-
-