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
- Version:
- 2017-09-29
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer 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 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
isRunningVon Schnittstelle geerbte Methoden ch.nolix.coreapi.programcontrol.future.IFuture
isFinishedSuccessfully, isFinishedWithError, waitUntilIsFinishedSuccessfully, waitUntilIsFinishedSuccessfully
-
Methodendetails
-
caughtError
public boolean caughtError()- Angegeben von:
caughtErrorin SchnittstelleIFuture- Gibt zurück:
- true if the current
IFuturecaught an error.
-
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.
-
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.
-