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.WaitingItem
getCreateItem()
IfScheduleResult.isCreated()
returns true, then this method returns the newly created item, which is always of the typeQueue.WaitingItem
.Queue.Item
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.boolean
isCreated()
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:ScheduleResult
If true, theScheduleResult.getItem()
is newly created as a result ofQueue.schedule2(hudson.model.Queue.Task, int, java.util.List<hudson.model.Action>)
.- Overrides:
isCreated
in classScheduleResult
-
getCreateItem
public Queue.WaitingItem getCreateItem()
Description copied from class:ScheduleResult
IfScheduleResult.isCreated()
returns true, then this method returns the newly created item, which is always of the typeQueue.WaitingItem
.- Overrides:
getCreateItem
in classScheduleResult
-
getItem
public Queue.Item getItem()
Description copied from class:ScheduleResult
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.- Overrides:
getItem
in classScheduleResult
-
-