Class AbstractFuture
java.lang.Object
ch.nolix.base.programcontrol.future.AbstractFuture
- All Implemented Interfaces:
IFuture, FinishRequestable
- Direct Known Subclasses:
Future, Future, ImageGenerator, ResultFuture
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal booleanfinal voidLets the currentIFuturewait until it is finished successfully.final voidwaitUntilIsFinishedSuccessfully(int timeoutInMilliseconds) Lets the currentIFuturewait until it is finished successfully within the given timeoutInMilliseconds.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FinishRequestable
isFinished, isRunningMethods inherited from interface IFuture
caughtError, getError, waitUntilIsFinished, waitUntilIsFinished
-
Constructor Details
-
AbstractFuture
public AbstractFuture()
-
-
Method Details
-
isFinishedSuccessfully
public final boolean isFinishedSuccessfully()- Specified by:
isFinishedSuccessfullyin interfaceIFuture- Returns:
- true if the current
IFutureis finished successfully, false otherwise.
-
isFinishedWithError
public final boolean isFinishedWithError()- Specified by:
isFinishedWithErrorin interfaceIFuture- Returns:
- true if the current
IFutureis finished with an error, false otherwise.
-
waitUntilIsFinishedSuccessfully
public final void waitUntilIsFinishedSuccessfully()Lets the currentIFuturewait until it is finished successfully.- Specified by:
waitUntilIsFinishedSuccessfullyin interfaceIFuture
-
waitUntilIsFinishedSuccessfully
public final void waitUntilIsFinishedSuccessfully(int timeoutInMilliseconds) Lets the currentIFuturewait until it is finished successfully within the given timeoutInMilliseconds.- Specified by:
waitUntilIsFinishedSuccessfullyin interfaceIFuture- Parameters:
timeoutInMilliseconds-
-