Klasse ResultFuture<R>
java.lang.Object
ch.nolix.core.programcontrol.future.AbstractFuture
ch.nolix.core.programcontrol.flowcontrol.ResultFuture<R>
- Typparameter:
R- is the type of the result of aResultFuture.
- Alle implementierten Schnittstellen:
IFuture, IResultFuture<R>, FinishRequestable
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungbooleangetError()booleanvoidLets the currentIFuturewait until it is finished.voidwaitUntilIsFinished(int timeoutInMilliseconds) Lets the currentIFuturewait until it is finished within the given timeoutInMilliseconds.Waits until the currentIResultFutureis finished and returns its result.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
isRunningVon Schnittstelle geerbte Methoden IFuture
isFinishedSuccessfully, isFinishedWithError, waitUntilIsFinishedSuccessfully, waitUntilIsFinishedSuccessfully
-
Methodendetails
-
caughtError
public boolean caughtError()- Angegeben von:
caughtErrorin SchnittstelleIFuture- Gibt zurück:
- true if the current
IFuturecaught an error, false otherwise.
-
getError
-
getResult
- Angegeben von:
getResultin SchnittstelleIResultFuture<R>- Gibt zurück:
- the result of the current
IResultFuture.
-
isFinished
public boolean isFinished()- Angegeben von:
isFinishedin SchnittstelleFinishRequestable- Gibt zurück:
- true if the current
FinishRequestableis finished, false otherwise.
-
waitUntilIsFinished
public void waitUntilIsFinished()Lets the currentIFuturewait until it is finished.- Angegeben von:
waitUntilIsFinishedin SchnittstelleIFuture
-
waitUntilIsFinished
public void waitUntilIsFinished(int timeoutInMilliseconds) Lets the currentIFuturewait until it is finished within the given timeoutInMilliseconds.- Angegeben von:
waitUntilIsFinishedin SchnittstelleIFuture- Parameter:
timeoutInMilliseconds-
-
waitUntilIsFinishedAndGetResult
Waits until the currentIResultFutureis finished and returns its result.- Angegeben von:
waitUntilIsFinishedAndGetResultin SchnittstelleIResultFuture<R>- Gibt zurück:
- the result of the current
IResultFutureafter waiting until it is finished.
-