JBoss Threads 2.0.0.GA

org.jboss.threads
Class Dependency

java.lang.Object
  extended by 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 Summary
static Dependency currentTask()
          Get the dependency task which this thread is currently running.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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

JBoss Threads 2.0.0.GA

Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.