Klasse ResultFuture<R>
java.lang.Object
ch.nolix.core.programcontrol.future.BaseFuture
ch.nolix.core.programcontrol.sequencer.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 TypMethodeBeschreibungboolean
getError()
boolean
void
Lets the currentIFuture
wait until it is finished.void
waitUntilIsFinished
(int timeoutInMilliseconds) Lets the currentIFuture
wait until it is finished within the given timeoutInMilliseconds.Waits until the currentIResultFuture
is finished and returns its result.Von Klasse geerbte Methoden ch.nolix.core.programcontrol.future.BaseFuture
isFinishedSuccessfully, isFinishedWithError, waitUntilIsFinishedSuccessfully, waitUntilIsFinishedSuccessfully
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.programcontrolapi.processapi.FinishRequestable
isRunning
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.programcontrolapi.futureapi.IFuture
isFinishedSuccessfully, isFinishedWithError, waitUntilIsFinishedSuccessfully, waitUntilIsFinishedSuccessfully
-
Methodendetails
-
caughtError
public boolean caughtError()- Angegeben von:
caughtError
in SchnittstelleIFuture
- Gibt zurück:
- true if the current
IFuture
caught an error.
-
getError
-
getResult
- Angegeben von:
getResult
in SchnittstelleIResultFuture<R>
- Gibt zurück:
- the result of the current
IResultFuture
.
-
isFinished
public boolean isFinished()- Angegeben von:
isFinished
in SchnittstelleFinishRequestable
- Gibt zurück:
- true if the current
FinishRequestable
is finished.
-
waitUntilIsFinished
public void waitUntilIsFinished()Lets the currentIFuture
wait until it is finished.- Angegeben von:
waitUntilIsFinished
in SchnittstelleIFuture
-
waitUntilIsFinished
public void waitUntilIsFinished(int timeoutInMilliseconds) Lets the currentIFuture
wait until it is finished within the given timeoutInMilliseconds.- Angegeben von:
waitUntilIsFinished
in SchnittstelleIFuture
- Parameter:
timeoutInMilliseconds
-
-
waitUntilIsFinishedAndGetResult
Waits until the currentIResultFuture
is finished and returns its result.- Angegeben von:
waitUntilIsFinishedAndGetResult
in SchnittstelleIResultFuture<R>
- Gibt zurück:
- the result of the current
IResultFuture
after waiting until it is finished.
-