Klasse Future
java.lang.Object
ch.nolix.core.programcontrol.future.AbstractFuture
ch.nolix.core.programcontrol.flowcontrol.Future
- Alle implementierten Schnittstellen:
IFuture,FinishRequestable
- Version:
- 2017-05-23
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer 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 ch.nolix.core.programcontrol.future.AbstractFuture
isFinishedSuccessfully, isFinishedWithError, waitUntilIsFinishedSuccessfully, waitUntilIsFinishedSuccessfullyVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.programcontrol.process.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.
-
getError
- Gibt zurück:
- the error of the current
IFuture.
-
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.
-
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-
-