org.jboss.threads
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 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 |
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
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.