Class Dependency
java.lang.Object
org.jboss.threads.Dependency
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
Modifier and TypeMethodDescriptionstatic DependencyGet the dependency task which this thread is currently running.
-
Method Details
-
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
nullif the current thread is not running a dependency task
-