Package hudson.model.queue
Interface FoldableAction
-
- All Superinterfaces:
Action,ModelObject
- All Known Implementing Classes:
CauseAction
public interface FoldableAction extends Action
An action interface that allows action data to be folded together.Actioncan implement this optional marker interface to be notified when theQueue.Taskthat it's added to the queue with is determined to be "already in the queue".This is useful for passing on parameters to the task that's already in the queue.
- Since:
- 1.300-ish.
- Author:
- mdonohue
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfoldIntoExisting(Queue.Item item, Queue.Task owner, List<Action> otherActions)Notifies that theQueue.Taskthat "owns" this action (that is, the task for which this action is submitted) is considered as a duplicate.-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
-
-
-
Method Detail
-
foldIntoExisting
void foldIntoExisting(Queue.Item item, Queue.Task owner, List<Action> otherActions)
Notifies that theQueue.Taskthat "owns" this action (that is, the task for which this action is submitted) is considered as a duplicate.- Parameters:
item- The existingQueue.Itemin the queue against which we are judged as a duplicate. Never null.owner- TheQueue.Taskwith which this action was submitted to the queue. Never null.otherActions- OtherActions that are submitted with the task. (One of them is thisFoldableAction.) Never null.
-
-