Package org.jvnet.hudson.reactor
Interface TaskGraphBuilder.Handle
-
- All Superinterfaces:
Milestone
- Enclosing class:
- TaskGraphBuilder
public static interface TaskGraphBuilder.Handle extends Milestone
Handle to the task. Call methods on this interface to set up dependencies among tasks.This interface is the fluent interface pattern, and all the methods return
thisto enable chaining.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TaskasTask()Returns the task that this handle represents.TaskGraphBuilder.Handleattains(Collection<? extends Milestone> m)TaskGraphBuilder.Handleattains(Milestone m)Designates that the execution of this task contributes to the given milestone.TasknotFatal()Marks this task as non-fatal.TaskGraphBuilder.Handlerequires(Collection<? extends Milestone> m)TaskGraphBuilder.Handlerequires(Milestone m)Adds a pre-requisite to this task.TaskGraphBuilder.Handlerequires(Milestone... m)Adds pre-requisites to this task.
-
-
-
Method Detail
-
requires
TaskGraphBuilder.Handle requires(Milestone m)
Adds a pre-requisite to this task.
-
requires
TaskGraphBuilder.Handle requires(Milestone... m)
Adds pre-requisites to this task.
-
requires
TaskGraphBuilder.Handle requires(Collection<? extends Milestone> m)
-
attains
TaskGraphBuilder.Handle attains(Milestone m)
Designates that the execution of this task contributes to the given milestone.
-
attains
TaskGraphBuilder.Handle attains(Collection<? extends Milestone> m)
-
asTask
Task asTask()
Returns the task that this handle represents.
-
notFatal
Task notFatal()
Marks this task as non-fatal. SeeTask.failureIsFatal().
-
-