Package hudson.model.queue
Class ScheduleResult.Created
java.lang.Object
hudson.model.queue.ScheduleResult
hudson.model.queue.ScheduleResult.Created
- Enclosing class:
ScheduleResult
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.queue.ScheduleResult
ScheduleResult.Created, ScheduleResult.Existing, ScheduleResult.Refused -
Method Summary
Modifier and TypeMethodDescriptionIfScheduleResult.isCreated()returns true, then this method returns the newly created item, which is always of the typeQueue.WaitingItem.getItem()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.booleanIf 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 Details
-
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
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
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
-