public static final class ScheduleResult.Created extends ScheduleResult
ScheduleResult.Created, ScheduleResult.Existing, ScheduleResult.Refused| Modifier and Type | Method and Description |
|---|---|
Queue.WaitingItem |
getCreateItem()
If
ScheduleResult.isCreated() returns true, then this method returns
the newly created item, which is always of the type Queue.WaitingItem. |
Queue.Item |
getItem()
Unless
ScheduleResult.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, the
ScheduleResult.getItem() is newly created
as a result of Queue.schedule2(hudson.model.Queue.Task, int, java.util.List<hudson.model.Action>). |
created, existing, isAccepted, isRefused, refusedpublic boolean isCreated()
ScheduleResultScheduleResult.getItem() is newly created
as a result of Queue.schedule2(hudson.model.Queue.Task, int, java.util.List<hudson.model.Action>).isCreated in class ScheduleResultpublic Queue.WaitingItem getCreateItem()
ScheduleResultScheduleResult.isCreated() returns true, then this method returns
the newly created item, which is always of the type Queue.WaitingItem.getCreateItem in class ScheduleResultpublic Queue.Item getItem()
ScheduleResultScheduleResult.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.getItem in class ScheduleResultCopyright © 2019. All rights reserved.