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 TypMethodeBeschreibungbooleangetError()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.programcontrolapi.processapi.FinishRequestable
isRunning
-
Methodendetails
-
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-
-