Schnittstelle IFuture
- Alle Superschnittstellen:
FinishRequestable
- Alle bekannten Unterschnittstellen:
IImageGenerator
,IResultFuture<R>
- Alle bekannten Implementierungsklassen:
AbstractFuture
,Future
,ImageGenerator
,ResultFuture
A
IFuture
is supposed to be given back when a job is started in
background. A IFuture
can always be asked if the background job has
finished or thrown an error.- Version:
- 2019-04-14
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
getError()
boolean
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.void
Lets the currentIFuture
wait until it is finished successfully.void
waitUntilIsFinishedSuccessfully
(int timeoutInMilliseconds) Lets the currentIFuture
wait until it is finished successfully within the given timeoutInMilliseconds.Von Schnittstelle geerbte Methoden ch.nolix.coreapi.programcontrolapi.processapi.FinishRequestable
isFinished, isRunning
-
Methodendetails
-
caughtError
boolean caughtError()- Gibt zurück:
- true if the current
IFuture
caught an error.
-
getError
Throwable getError()- Gibt zurück:
- the error of the current
IFuture
.
-
isFinishedSuccessfully
boolean isFinishedSuccessfully()- Gibt zurück:
- true if the current
IFuture
is finished successfully.
-
isFinishedWithError
boolean isFinishedWithError()- Gibt zurück:
- true if the current
IFuture
is finished with an error.
-
waitUntilIsFinished
void waitUntilIsFinished()Lets the currentIFuture
wait until it is finished. -
waitUntilIsFinished
void waitUntilIsFinished(int timeoutInMilliseconds) Lets the currentIFuture
wait until it is finished within the given timeoutInMilliseconds.- Parameter:
timeoutInMilliseconds
-
-
waitUntilIsFinishedSuccessfully
void waitUntilIsFinishedSuccessfully()Lets the currentIFuture
wait until it is finished successfully.- Löst aus:
RuntimeException
- if the currentIFuture
catches an error.
-
waitUntilIsFinishedSuccessfully
void waitUntilIsFinishedSuccessfully(int timeoutInMilliseconds) Lets the currentIFuture
wait until it is finished successfully within the given timeoutInMilliseconds.- Parameter:
timeoutInMilliseconds
-- Löst aus:
RuntimeException
- if the currentIFuture
catches an error.RuntimeException
- if the currentIFuture
reached the given timeoutInMilliseconds before having finished.
-