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.boolean
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 Details
-
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
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
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
-