Interface SessionHelper.Task

All Superinterfaces:
Runnable
Enclosing class:
SessionHelper

protected static interface SessionHelper.Task extends Runnable
Interface for detecting when a Runnable Task has completed.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Indicate if the task has completed.
    boolean
    Indicates wheter the task has succeeded (accomplished what it was intended to do) or not.
    void
    setDone(boolean fDone)
    Specify if the task has completed.
    void
    setSucceeded(boolean fSucceeded)
    Specify whether the task has succeeded or not.

    Methods inherited from interface java.lang.Runnable

    run
  • Method Details

    • setDone

      void setDone(boolean fDone)
      Specify if the task has completed.
      Parameters:
      fDone - true if the task has completed its execution.
    • isDone

      boolean isDone()
      Indicate if the task has completed.
      Returns:
      true if the task has completed its execution
    • setSucceeded

      void setSucceeded(boolean fSucceeded)
      Specify whether the task has succeeded or not.
      Parameters:
      fSucceeded - true if the task has succeeded.
    • isSucceeded

      boolean isSucceeded()
      Indicates wheter the task has succeeded (accomplished what it was intended to do) or not.
      Returns:
      true if the task has succeeded.