Klasse Future
java.lang.Object
ch.nolix.core.programcontrol.future.AbstractFuture
ch.nolix.core.programcontrol.flowcontrol.Future
- Alle implementierten Schnittstellen:
IFuture, FinishRequestable
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungbooleanstatic FutureforJobExecturor(ch.nolix.core.programcontrol.flowcontrol.JobExecutor jobExecutor) getError()intbooleanvoidLets the currentIFuturewait until it is finished.voidwaitUntilIsFinished(int timeoutInMilliseconds) Lets the currentIFuturewait until it is finished within the given timeoutInMilliseconds.Von Klasse geerbte Methoden AbstractFuture
isFinishedSuccessfully, isFinishedWithError, waitUntilIsFinishedSuccessfully, waitUntilIsFinishedSuccessfullyVon Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden FinishRequestable
isRunning
-
Methodendetails
-
forJobExecturor
public static Future forJobExecturor(ch.nolix.core.programcontrol.flowcontrol.JobExecutor jobExecutor) - Parameter:
jobExecutor-- Gibt zurück:
- a new
Futurewith the given jobExecutor. - Löst aus:
ArgumentIsNullException- if the given jobExecutor is null.
-
caughtError
public boolean caughtError()- Gibt zurück:
- true if the current
IFuturecaught an error, false otherwise.
-
getError
-
getFinishedJobCount
public int getFinishedJobCount()- Gibt zurück:
- the number of finished jobs of the current
IFuture.
-
isFinished
public boolean isFinished()- Gibt zurück:
- true if the current
FinishRequestableis finished, false otherwise.
-
waitUntilIsFinished
public void waitUntilIsFinished()Lets the currentIFuturewait until it is finished. -
waitUntilIsFinished
public void waitUntilIsFinished(int timeoutInMilliseconds) Lets the currentIFuturewait until it is finished within the given timeoutInMilliseconds.- Parameter:
timeoutInMilliseconds-
-