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, refused
public boolean isCreated()
ScheduleResult
ScheduleResult.getItem()
is newly created
as a result of Queue.schedule2(hudson.model.Queue.Task, int, java.util.List<hudson.model.Action>)
.isCreated
in class ScheduleResult
public Queue.WaitingItem getCreateItem()
ScheduleResult
ScheduleResult.isCreated()
returns true, then this method returns
the newly created item, which is always of the type Queue.WaitingItem
.getCreateItem
in class ScheduleResult
public Queue.Item getItem()
ScheduleResult
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.getItem
in class ScheduleResult
Copyright © 2004–2021. All rights reserved.