Class Dependency

java.lang.Object
org.jboss.threads.Dependency

public final class Dependency extends Object
A task which depends on other tasks, and which may have tasks depending upon it. Such a task is automatically run when using a provided executor when all its dependencies are satisfied.
  • Method Details

    • currentTask

      public static Dependency currentTask()
      Get the dependency task which this thread is currently running. This may be used to add dependencies on the currently running task.
      Returns:
      the currently running task, or null if the current thread is not running a dependency task