Package arez.spy

Interface TaskInfo

All Superinterfaces:
ElementInfo

public interface TaskInfo extends ElementInfo
A representation of a task instance exposed to spy framework.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return the priority of the task.
    boolean
    Return true if the task is idle - not scheduled to run and not disposed.
    boolean
    Return true if the task is scheduled to run.

    Methods inherited from interface arez.spy.ElementInfo

    getName, isDisposed
  • Method Details

    • isIdle

      boolean isIdle()
      Return true if the task is idle - not scheduled to run and not disposed.
      Returns:
      true if the task is idle.
    • isScheduled

      boolean isScheduled()
      Return true if the task is scheduled to run.
      Returns:
      true if the task is scheduled to run.
    • getPriority

      @Nonnull Priority getPriority()
      Return the priority of the task.
      Returns:
      the priority of the task.