Interface IFuture
- All Superinterfaces:
FinishRequestable
- All Known Subinterfaces:
IImageGenerator, IResultFuture<R>
- All Known Implementing Classes:
AbstractFuture, Future, Future, ImageGenerator, ResultFuture
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetError()booleanbooleanvoidLets the currentIFuturewait until it is finished.voidwaitUntilIsFinished(int timeoutInMilliseconds) Lets the currentIFuturewait until it is finished within the given timeoutInMilliseconds.voidLets the currentIFuturewait until it is finished successfully.voidwaitUntilIsFinishedSuccessfully(int timeoutInMilliseconds) Lets the currentIFuturewait until it is finished successfully within the given timeoutInMilliseconds.Methods inherited from interface FinishRequestable
isFinished, isRunning
-
Method Details
-
caughtError
boolean caughtError()- Returns:
- true if the current
IFuturecaught an error, false otherwise.
-
getError
-
isFinishedSuccessfully
boolean isFinishedSuccessfully()- Returns:
- true if the current
IFutureis finished successfully, false otherwise.
-
isFinishedWithError
boolean isFinishedWithError()- Returns:
- true if the current
IFutureis finished with an error, false otherwise.
-
waitUntilIsFinished
void waitUntilIsFinished()Lets the currentIFuturewait until it is finished. -
waitUntilIsFinished
void waitUntilIsFinished(int timeoutInMilliseconds) Lets the currentIFuturewait until it is finished within the given timeoutInMilliseconds.- Parameters:
timeoutInMilliseconds-
-
waitUntilIsFinishedSuccessfully
void waitUntilIsFinishedSuccessfully()Lets the currentIFuturewait until it is finished successfully.- Throws:
RuntimeException- if the currentIFuturecatches an error.
-
waitUntilIsFinishedSuccessfully
void waitUntilIsFinishedSuccessfully(int timeoutInMilliseconds) Lets the currentIFuturewait until it is finished successfully within the given timeoutInMilliseconds.- Parameters:
timeoutInMilliseconds-- Throws:
RuntimeException- if the currentIFuturecatches an error.RuntimeException- if the currentIFuturereached the given timeoutInMilliseconds before having finished.
-