Class AbstractFuture

java.lang.Object
ch.nolix.base.programcontrol.future.AbstractFuture
All Implemented Interfaces:
IFuture, FinishRequestable
Direct Known Subclasses:
Future, Future, ImageGenerator, ResultFuture

public abstract class AbstractFuture extends Object implements IFuture
Author:
Silvan Wyss
  • Constructor Details

    • AbstractFuture

      public AbstractFuture()
  • Method Details

    • isFinishedSuccessfully

      public final boolean isFinishedSuccessfully()
      Specified by:
      isFinishedSuccessfully in interface IFuture
      Returns:
      true if the current IFuture is finished successfully, false otherwise.
    • isFinishedWithError

      public final boolean isFinishedWithError()
      Specified by:
      isFinishedWithError in interface IFuture
      Returns:
      true if the current IFuture is finished with an error, false otherwise.
    • waitUntilIsFinishedSuccessfully

      public final void waitUntilIsFinishedSuccessfully()
      Lets the current IFuture wait until it is finished successfully.
      Specified by:
      waitUntilIsFinishedSuccessfully in interface IFuture
    • waitUntilIsFinishedSuccessfully

      public final void waitUntilIsFinishedSuccessfully(int timeoutInMilliseconds)
      Lets the current IFuture wait until it is finished successfully within the given timeoutInMilliseconds.
      Specified by:
      waitUntilIsFinishedSuccessfully in interface IFuture
      Parameters:
      timeoutInMilliseconds -