Package hudson.model.queue
Class ScheduleResult.Created
- java.lang.Object
-
- hudson.model.queue.ScheduleResult
-
- hudson.model.queue.ScheduleResult.Created
-
- Enclosing class:
- ScheduleResult
public static final class ScheduleResult.Created extends ScheduleResult
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.queue.ScheduleResult
ScheduleResult.Created, ScheduleResult.Existing, ScheduleResult.Refused
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Queue.WaitingItemgetCreateItem()IfScheduleResult.isCreated()returns true, then this method returns the newly created item, which is always of the typeQueue.WaitingItem.Queue.ItemgetItem()UnlessScheduleResult.isRefused()is true, this method either returns the newly created item in the queue or the existing item that's already in the queue that matched the submitted task.booleanisCreated()If true, theScheduleResult.getItem()is newly created as a result ofQueue.schedule2(hudson.model.Queue.Task, int, java.util.List<hudson.model.Action>).-
Methods inherited from class hudson.model.queue.ScheduleResult
created, existing, isAccepted, isRefused, refused
-
-
-
-
Method Detail
-
isCreated
public boolean isCreated()
Description copied from class:ScheduleResultIf true, theScheduleResult.getItem()is newly created as a result ofQueue.schedule2(hudson.model.Queue.Task, int, java.util.List<hudson.model.Action>).- Overrides:
isCreatedin classScheduleResult
-
getCreateItem
public Queue.WaitingItem getCreateItem()
Description copied from class:ScheduleResultIfScheduleResult.isCreated()returns true, then this method returns the newly created item, which is always of the typeQueue.WaitingItem.- Overrides:
getCreateItemin classScheduleResult
-
getItem
public Queue.Item getItem()
Description copied from class:ScheduleResultUnlessScheduleResult.isRefused()is true, this method either returns the newly created item in the queue or the existing item that's already in the queue that matched the submitted task.- Overrides:
getItemin classScheduleResult
-
-