Class ThreadTask.TaskState

  • Enclosing class:
    ThreadTask

    public static final class ThreadTask.TaskState
    extends java.lang.Object
    The different execution states of a task.
    • Field Detail

      • INITIALIZATION

        public static final ThreadTask.TaskState INITIALIZATION
        Before execute has been called the first time.
      • IN_QUEUE

        public static final ThreadTask.TaskState IN_QUEUE
        Task has added its work to the pool, waiting for thread to become available.
      • EXECUTING

        public static final ThreadTask.TaskState EXECUTING
        The run function of the task is executing in the pool.
      • CHILDREN

        public static final ThreadTask.TaskState CHILDREN
        The run loop has finished, but children are still running.
      • IDLE

        public static final ThreadTask.TaskState IDLE
        The idle function is called and subtasks can still be added. If the keep alive has been enabled, the task will stay in this state and not continue to the POSTWORK state.
      • POSTWORK

        public static final ThreadTask.TaskState POSTWORK
        The task does not accept any more new subtasks - the done function is invoked.
      • DONE

        public static final ThreadTask.TaskState DONE
        The done function has been invoked, and the task is now completed and dead.
    • Method Detail

      • swigValue

        public final int swigValue()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object